@charset "UTF-8";
@-ms-viewport {
  min-width: 480px;
  max-width: device-width;
}
@viewport {
  min-width: 480px;
  max-width: device-width;
}
:root {
  --primary: #193b5c;
  --primary-light: #5c7ea0;
  --bg-alt: #f1f5f9;
  --border: #dce5ee;
  --code-bg: #f1f5f9;
  --radius: 6px;
}

a {
  color: #2f5680;
  -webkit-transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
a:hover {
  color: #1b7f84;
}
a:active {
  color: #14314c;
}

img {
  max-width: 100%;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.full {
  width: 100% !important;
}

.action-btn {
  background: #193b5c;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
  cursor: pointer;
}
.action-btn:hover {
  background: #14314c;
  color: #fff;
  text-decoration: none;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.action-btn:active {
  background: #0f2a44;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.action-btn:focus-visible {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
}
.action-btn i.fa {
  font-size: 1em;
  opacity: 0.9;
}
.action-btn:disabled, .action-btn.disabled {
  background: #dce5ee !important;
  color: #8aa5c0 !important;
  border-color: transparent !important;
  cursor: not-allowed;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.action-btn:disabled:hover, .action-btn:disabled:active, .action-btn.disabled:hover, .action-btn.disabled:active {
  background: #dce5ee !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

.action-btn.background-green {
  background: #16a34a;
  color: #fff;
}
.action-btn.background-green:hover {
  background: #15803d;
  color: #fff;
}
.action-btn.background-green:active {
  background: #15803d;
}

.action-btn.background-red {
  background: #dc2626;
  color: #fff;
}
.action-btn.background-red:hover {
  background: #b91c1c;
  color: #fff;
}
.action-btn.background-red:active {
  background: #b91c1c;
}

.action-btn.background-blue {
  background: #2f5680;
  color: #fff;
}
.action-btn.background-blue:hover {
  background: #14314c;
  color: #fff;
}
.action-btn.background-blue:active {
  background: #14314c;
}

.action-btn.background-gray {
  background: #527291;
  color: #fff;
}
.action-btn.background-gray:hover {
  background: #193b5c;
  color: #fff;
}
.action-btn.background-gray:active {
  background: #193b5c;
}

.action-btn.background-warning {
  background: #f59e0b;
  color: #0f2a44;
}
.action-btn.background-warning:hover {
  background: #d97706;
  color: #0f2a44;
}
.action-btn.background-warning:active {
  background: #d97706;
}

.action-btn.background-theme {
  background: #193b5c;
  color: #fff;
}
.action-btn.background-theme:hover {
  background: #14314c;
  color: #fff;
}
.action-btn.background-theme:active {
  background: #0f2a44;
}

.action-btn.small {
  padding: 5px 12px;
  font-size: 0.85em;
  border-radius: 6px;
}

.action-btn.large {
  padding: 12px 24px;
  font-size: 1.05em;
  border-radius: 12px;
}

.action-btn.outlined {
  background: #fff;
  border: 1px solid #dce5ee;
  color: #0f2a44;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.action-btn.outlined:hover {
  background: #f1f5f9;
  border-color: #b6c7da;
  color: #0f2a44;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.action-btn.outlined:active {
  background: #dce5ee;
  -webkit-box-shadow: none;
          box-shadow: none;
}

@media (max-width: 799px) {
  .action-btn {
    font-size: 0.9em;
    padding: 7px 12px;
    border-radius: 8px;
  }
  .action-btn.small {
    font-size: 0.85em;
    padding: 0.6em 1em;
  }
  .action-btn.large {
    font-size: 1em;
    padding: 0.8em 1.4em;
  }
}
.submit-btn,
input[type=submit].submit-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 8px;
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px 16px;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: #193b5c;
  border: 1px solid transparent;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.submit-btn span,
input[type=submit].submit-btn span {
  font-size: 1em;
}
.submit-btn .icon,
input[type=submit].submit-btn .icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  position: static;
  width: auto;
  background: none;
  border-radius: 0;
}
.submit-btn .icon i,
input[type=submit].submit-btn .icon i {
  font-size: 0.95em;
  color: inherit;
}
.submit-btn:hover, .submit-btn:focus,
input[type=submit].submit-btn:hover,
input[type=submit].submit-btn:focus {
  background: #14314c;
  color: #fff;
  text-decoration: none;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.submit-btn:active,
input[type=submit].submit-btn:active {
  background: #0f2a44;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.submit-btn:focus-visible,
input[type=submit].submit-btn:focus-visible {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
}
.submit-btn:disabled,
input[type=submit].submit-btn:disabled {
  background: #dce5ee;
  color: #8aa5c0;
  cursor: not-allowed;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.submit-btn:disabled:hover, .submit-btn:disabled:active, .submit-btn:disabled:focus,
input[type=submit].submit-btn:disabled:hover,
input[type=submit].submit-btn:disabled:active,
input[type=submit].submit-btn:disabled:focus {
  background: #dce5ee;
  color: #8aa5c0;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.submit-btn.btn-disabled,
input[type=submit].submit-btn.btn-disabled {
  background: #dce5ee;
  color: #8aa5c0;
  cursor: not-allowed;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.submit-btn.btn-disabled:hover, .submit-btn.btn-disabled:active, .submit-btn.btn-disabled:focus,
input[type=submit].submit-btn.btn-disabled:hover,
input[type=submit].submit-btn.btn-disabled:active,
input[type=submit].submit-btn.btn-disabled:focus {
  background: #dce5ee;
  color: #8aa5c0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

table.sortable thead {
  background-color: #f1f5f9;
  color: #527291;
  font-weight: bold;
  cursor: default;
}

th.tablesorter-headerAsc:after {
  content: " ▴";
}
th.tablesorter-headerDesc:after {
  content: " ▾";
}

div.tablesorter-header-inner {
  display: inline;
}

pre {
  white-space: pre-wrap;
}

hr {
  display: block;
  height: 0;
  border: 0;
  font-style: italic;
  border-bottom: 1px solid #dce5ee;
  padding: 0;
}

.dashed {
  border-bottom: 1px dashed #dce5ee;
}

th {
  vertical-align: middle;
}

.form-area {
  display: inline-block;
  background: #eef2f7;
  padding: 5px 10px 10px 15px;
  border-radius: 10px;
  border: 1px solid #dce5ee;
}

div.info-float {
  float: right;
  padding: 10px;
}

footer {
  color: gray;
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  background: #eef2f7;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  color: #0f2a44;
  height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #b6c7da transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #b6c7da;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8aa5c0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

:focus-visible {
  outline: 2px solid #2bb8be;
  outline-offset: 2px;
}

.unselectable {
  cursor: default;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f2a44;
  margin: 0;
  padding: 0;
}

b {
  font-weight: 700;
}

h2 {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0f2a44;
  border-radius: 10px;
  padding: 0;
  margin: 0;
}

h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #0f2a44;
  border-radius: 10px;
  padding: 0;
  margin: 0;
}

h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
  margin: 0;
}

h5 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

h6 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

header {
  background: #0a1c2e;
  color: #8aa5c0;
  text-align: left;
  display: block;
  height: 60px;
  margin-top: -10px;
  padding: 10px 10px 10px 5%;
}

#user-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  text-align: center;
  padding: 4px;
  margin-right: 1em;
  gap: 5px;
}
#user-links:hover {
  color: black;
  border-radius: 2px;
  border: 0.5px solid black;
  cursor: pointer;
  padding: 3.5px;
}

#nav-shadow {
  height: 2px;
  background: -webkit-gradient(linear, left top, right top, from(#5fe0e5), color-stop(45%, #2bb8be), to(#2f5680));
  background: -webkit-linear-gradient(left, #5fe0e5 0%, #2bb8be 45%, #2f5680 100%);
  background: -moz-linear-gradient(left, #5fe0e5 0%, #2bb8be 45%, #2f5680 100%);
  background: linear-gradient(90deg, #5fe0e5 0%, #2bb8be 45%, #2f5680 100%);
  opacity: 0.9;
}

#nav-container {
  background: #fff;
  height: 100%;
  border-bottom: 1px solid #dce5ee;
  -webkit-box-shadow: 0 1px 3px 0 rgba(15, 42, 68, 0.18);
          box-shadow: 0 1px 3px 0 rgba(15, 42, 68, 0.18);
}

#navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 10px;
  height: 56px;
}

nav {
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  margin: 0 auto;
  z-index: 500;
  text-align: left;
}
nav ul {
  margin: 0 0 0 -5px !important;
  padding: 0 0 0 1%;
  text-align: left;
  display: inline;
  list-style: none;
  background: transparent;
}
nav ul li {
  display: inline-block;
  color: #0f2a44;
  text-transform: none;
  position: relative;
}
nav ul li.home-nav-element {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-right: 1em;
}
nav ul li.home-nav-element a {
  padding: 0;
  height: 44px;
}
nav ul li.home-nav-element a:hover {
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
}
nav ul li a,
nav ul li button {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  height: 100%;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #0f2a44;
  font-weight: 600;
  font-size: initial;
  -webkit-transition: color 0.15s ease, background 0.15s ease;
  -moz-transition: color 0.15s ease, background 0.15s ease;
  transition: color 0.15s ease, background 0.15s ease;
}
nav ul li a:link,
nav ul li button:link {
  color: #0f2a44;
}
nav ul li a:hover,
nav ul li button:hover {
  color: #193b5c;
  background: transparent;
  margin: 0;
}
nav ul li a.active,
nav ul li button.active {
  color: #193b5c;
  background: transparent;
  border-bottom: 3px solid #2bb8be;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
nav ul li a .nav-expand,
nav ul li button .nav-expand {
  display: none;
}
nav ul li ul {
  padding: 4px 0;
  position: absolute;
  left: 5px;
  display: none;
  background: #fff;
  margin: 0 !important;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
  overflow: hidden;
}
nav ul li ul li:hover {
  background: #e5f7f9;
}
nav ul li ul li {
  display: block;
}
nav ul li ul li a {
  color: #0f2a44 !important;
}
nav ul li ul li a,
nav ul li ul li button {
  padding: 8px 20px 8px 12px !important;
  font-size: 0.85em;
  font-weight: 500;
  line-height: 18px;
  display: block;
  white-space: nowrap;
}
nav ul li button {
  background: none;
  text-align: left;
  border: none;
  width: 100%;
  border-radius: 0;
  height: auto !important;
}
nav ul li:hover > ul, nav ul li:active > ul, nav ul li:focus > ul {
  display: block !important;
}
nav ul li.home-nav-element a:hover {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

hr {
  color: rgba(0, 0, 0, 0.2);
}

#content {
  margin: 56px auto 1em auto;
  padding-top: 1em;
  width: 90%;
  height: 100%;
  min-height: 25em;
  display: block;
}
#content .title {
  color: #0f2a44;
}

footer {
  text-align: center;
  height: 40px;
  border-top: 1px solid #dce5ee;
  background: #ededed;
}

html {
  position: relative;
  height: 100%;
}

a {
  text-decoration: none;
  display: inline;
}

noscript #noscript {
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 111%;
  color: white;
  font-weight: bold;
  background: #dc2626;
  text-align: center;
  padding: 5px 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 100;
}

#announcement {
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 111%;
  color: white;
  font-weight: bold;
  background: #dc2626;
  text-align: center;
  max-width: 30%;
  position: fixed;
  border-radius: 10px;
  z-index: 100;
  bottom: -4px;
  right: -4px;
  padding: 5px 6px 6px 5px;
}
#announcement a {
  color: orange;
}

.time {
  color: #193b5c;
}

.toggle {
  font-weight: bold;
  cursor: pointer;
}
.toggle .fa {
  -webkit-transition: -webkit-transform 0.4s;
  transition: -webkit-transform 0.4s;
  -moz-transition: transform 0.4s, -moz-transform 0.4s;
  transition: transform 0.4s;
  transition: transform 0.4s, -webkit-transform 0.4s, -moz-transform 0.4s;
}
.toggle.open .fa {
  -webkit-transform: rotate(90deg);
     -moz-transform: rotate(90deg);
          transform: rotate(90deg);
}

#form-errors,
.form-errors {
  background: rgba(255, 0, 0, 0.3);
  border: 3px solid red;
  border-radius: 10px;
  padding: 0 1em 0.1em 1em;
  margin: 0.3em 0 0.5em 0;
}

#navicon {
  display: none;
}

#nav-placeholder {
  height: 47px;
  background: white;
  border-right: 1px solid #dce5ee;
  border-left: 1px solid #dce5ee;
}

#contest-info {
  font-size: 1.25em;
  z-index: 100000;
  cursor: move;
  position: fixed;
  left: 20px;
  top: 90%;
  display: none;
}
#contest-info a {
  height: 1.4em;
  padding: 0;
  margin: 0;
  color: white;
  display: block;
}

#contest-info-main {
  border-left: 5px dotted white;
  background: rgba(0, 0, 0, 0.77);
  padding: 10px 12px;
  color: white;
  display: inline;
}

#contest-info-toggle {
  display: inline;
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}

.contest-info-toggle-mode-on {
  background: rgba(0, 205, 0, 0.57);
}

.contest-info-toggle-mode-on:hover {
  background: rgba(0, 205, 0, 0.97);
}

.contest-info-toggle-mode-off {
  background: rgba(255, 0, 0, 0.57);
}

.contest-info-toggle-mode-off:hover {
  background: rgba(255, 0, 0, 0.97);
}

#contest-time-remaining {
  display: inline-block;
}

.spacer {
  display: inline-block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 1px;
     -moz-box-flex: 1;
          flex: 1 1 1px;
}

#page-container {
  min-height: 100%;
  position: relative;
  margin: 0 auto;
  border-right: 1px solid #dce5ee;
  border-left: 1px solid #dce5ee;
}

#content-body {
  padding-bottom: 4em;
}

.title-line-action {
  float: right;
  margin-top: 1.2em;
}

@media (max-width: 1498px) {
  #page-container {
    border-left: none;
    border-right: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
#notification {
  color: lightsteelblue;
}

#notification:hover {
  color: darkgray;
}

#chat-icon {
  color: darkgreen;
}

#chat-icon:hover {
  color: #193b5c;
}

#nav-lang-icon {
  color: blue;
  cursor: pointer;
}

#nav-lang-icon:hover {
  color: darkblue;
}

#nav-darkmode-icon {
  cursor: pointer;
}
#nav-darkmode-icon:hover {
  color: gray;
}

.dropdown {
  display: none;
  background-color: white;
  min-width: 160px;
  -webkit-box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 4px 0;
  z-index: 1;
  border-radius: 5px;
}
.dropdown a {
  display: block;
  text-decoration: none;
  -webkit-transition: background-color 0.3s;
  -moz-transition: background-color 0.3s;
  transition: background-color 0.3s;
  color: black;
}

.dropdown-item {
  font-size: 16px;
  padding: 6px 40px 6px 15px;
  cursor: pointer;
  color: black;
  font-weight: 600;
  border-top: 1px solid #dce5ee;
}
.dropdown-item i {
  width: 1.5em;
}

.dropdown-item:hover {
  color: #193b5c;
  background-color: #f8f8f2;
}

.popper-arrow,
.popper-arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

.popper-arrow {
  visibility: hidden;
}

.popper-arrow::before {
  visibility: visible;
  content: "";
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
          transform: rotate(45deg);
}

.popper-arrow {
  top: -4px;
}

.unread_boxes {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 1px 4px;
  margin-left: -12px;
  font-size: x-small;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
}

.sub-lang {
  color: black;
  font-size: x-small;
  margin-left: -12px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  text-transform: uppercase;
}

.featherlight {
  z-index: 1001 !important;
}

.notification-open #notification {
  color: green !important;
}

.title-row {
  color: #0f2a44;
  display: inline;
}

.gray {
  color: gray;
}

.white {
  color: white;
}

.black {
  color: black;
}

.red {
  color: red;
}

.green {
  color: green;
}

.grayed {
  color: #527291;
}

.darkcyan {
  color: darkcyan;
}

.peru {
  color: peru;
}

.blue {
  color: blue;
}

.background-white {
  background-color: #fff;
}

.background-primary {
  background-color: #193b5c !important;
  color: #fff !important;
}
.background-primary:hover {
  background-color: #14314c !important;
}

.background-green {
  background-color: #16a34a !important;
}

.background-red {
  background-color: #dc2626 !important;
}

.view-next-page {
  display: block;
  margin: 1em auto;
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #193b5c;
  width: 0;
  z-index: 9999;
}

.nav-right-text {
  font-weight: normal;
  font-size: small;
  text-align: center;
}

.anon {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1em;
  padding-right: 1em;
}
.anon a {
  color: black;
}

.colored-text {
  color: black;
}

.bold-text {
  font-weight: bold;
}

.non-italics {
  font-style: normal;
}

.margin-label {
  margin-bottom: 6px;
  padding-bottom: 0;
  display: block;
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #527291;
}

::-webkit-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #8aa5c0;
  opacity: 1;
  /* Firefox */
  text-align: left;
}

::-moz-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #8aa5c0;
  opacity: 1;
  /* Firefox */
  text-align: left;
}

:-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #8aa5c0;
  opacity: 1;
  /* Firefox */
  text-align: left;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #8aa5c0;
  opacity: 1;
  /* Firefox */
  text-align: left;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #8aa5c0;
  text-align: left;
}

input::-webkit-input-placeholder {
  color: #8aa5c0;
  text-align: left;
}

input::-moz-placeholder {
  color: #8aa5c0;
  text-align: left;
}

input:-ms-input-placeholder {
  color: #8aa5c0;
  text-align: left;
}

input::placeholder {
  color: #8aa5c0;
  text-align: left;
}

::-webkit-input-placeholder {
  color: #8aa5c0;
  text-align: left;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #8aa5c0;
  text-align: left;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #8aa5c0;
  text-align: left;
}

.nav-fa-icon i {
  margin-right: 0.1em;
  color: #000;
  font-size: 21px;
}

.nav-fa-icon-active i {
  color: #193b5c;
  font-size: 22.5px;
  margin-right: 0.1em;
}

.featherlight-content {
  max-height: 80% !important;
  min-width: 60%;
  border-radius: 10px;
}

.left-sidebar-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
  border-radius: 8px;
  color: #0f2a44;
  text-decoration: none;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.left-sidebar-item .sidebar-icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  width: 1.75em;
  height: 1.75em;
  font-size: 0.95em;
  color: #193b5c;
}
.left-sidebar-item .sidebar-icon i {
  width: auto;
}
.left-sidebar-item .sidebar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 0.95em;
}
.left-sidebar-item .org-logo {
  height: 1.75em;
  width: 1.75em;
  border-radius: 6px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  object-fit: cover;
}

.left-sidebar-item:hover {
  background-color: #f1f5f9;
  cursor: pointer;
  color: #193b5c;
}

.left-sidebar-item.active {
  background-color: #e5f7f9;
  color: #193b5c;
  font-weight: 600;
}
.left-sidebar-item.active .sidebar-icon {
  color: #1b7f84;
  background: transparent;
}

.left-sidebar-item.active:hover {
  background-color: #e5f7f9;
  color: #193b5c;
}

.sidebar-icon {
  color: #193b5c;
}

.left-sidebar-header {
  padding: 0.6em 0.75em 0.3em;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #527291;
  border-radius: 0;
}

@media (max-width: 799px) {
  .blog-sidebar,
  .right-sidebar {
    width: 100%;
    margin-left: auto;
    margin-top: 2em;
  }
  .nav-fa-icon {
    display: none;
  }
  .page-title {
    margin-left: 0.5em;
  }
  #navigation {
    height: 44px;
  }
  #content {
    margin-top: 44px;
  }
  #navicon {
    -webkit-transition-duration: 0.25s;
       -moz-transition-duration: 0.25s;
            transition-duration: 0.25s;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    font-size: 2em;
    color: #0f2a44;
    padding: 0 0.25em;
    margin: 4px 0.25em;
    white-space: nowrap;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
       -moz-box-flex: 1;
            flex-grow: 1;
  }
  #navicon.hover {
    color: #4db7fe;
    text-shadow: 0 0 5px white;
    -webkit-transition-duration: 0.25s;
       -moz-transition-duration: 0.25s;
            transition-duration: 0.25s;
  }
  #nav-list {
    display: none;
    padding: 0;
    margin-left: 0;
    text-align: center;
    border-left: 4px solid white;
    position: fixed;
    top: 36px;
    background: white;
    bottom: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    left: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
    border: 1px solid;
  }
  #nav-list li {
    display: block;
  }
  #nav-list li .nav-icon-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    text-decoration: none;
    color: #0f2a44;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    margin: 2px 8px;
    -webkit-transition: background 0.15s ease, color 0.15s ease;
    -moz-transition: background 0.15s ease, color 0.15s ease;
    transition: background 0.15s ease, color 0.15s ease;
    gap: 12px;
  }
  #nav-list li .nav-icon-link .nav-label {
    font-size: 0.95em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
  }
  #nav-list li .nav-icon-link .nav-expand {
    margin-left: auto;
    color: #527291;
    font-size: 12px;
  }
  #nav-list li .nav-icon-link:hover {
    background: #f1f5f9;
    color: #193b5c;
  }
  #nav-list li .nav-icon-link.active {
    background: #e5f7f9;
    color: #193b5c;
  }
  #nav-list li .nav-dropdown {
    display: none;
    position: static;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 4px 8px 8px 24px;
    padding: 8px 0;
    border-left: 3px solid #193b5c;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #193b5c;
    text-decoration: none;
    font-size: 13px;
    -webkit-transition: background-color 0.2s ease;
    -moz-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item:hover {
    background: rgba(25, 59, 92, 0.1);
    color: #193b5c;
  }
  #nav-list li:hover .nav-dropdown {
    display: block;
  }
  #nav-list li.home-menu-item a {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    text-decoration: none;
    color: #0f2a44;
    font-weight: normal;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    margin: 4px 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    gap: 12px;
  }
  #nav-list li.home-menu-item a::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(25, 59, 92, 0.1);
    font-size: 16px;
    color: #193b5c;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  #nav-list li.home-menu-item a::after {
    color: #0f2a44;
    font-size: 14px;
    font-weight: 500;
  }
  #nav-list li.home-menu-item a:hover {
    background: rgba(25, 59, 92, 0.1);
    -webkit-transform: translateX(4px);
       -moz-transform: translateX(4px);
            transform: translateX(4px);
  }
  #nav-list li.home-menu-item a:hover::before {
    background: #193b5c;
    color: white;
    -webkit-transform: scale(1.1);
       -moz-transform: scale(1.1);
            transform: scale(1.1);
  }
  #nav-list li.home-menu-item a.active {
    background: rgba(25, 59, 92, 0.15);
  }
  #nav-list li.home-menu-item a.active::before {
    background: #193b5c;
    color: white;
  }
  #nav-list li.home-menu-item a.active::after {
    color: #193b5c;
    font-weight: 600;
  }
  #nav-list li a:not(.nav-icon-link):not(.nav-home) {
    display: block;
    font-weight: normal;
    text-align: left;
    padding: 7px 13px;
  }
  #nav-list li a:not(.nav-icon-link):not(.nav-home) .nav-expand {
    float: right;
    display: block;
    height: inherit;
    margin: -13px -7px;
    padding: inherit;
  }
  #nav-list li ul {
    left: 8em;
    top: auto;
    bottom: auto;
    margin-top: -36px;
  }
  #nav-list li.home-nav-element {
    display: none;
  }
  .left-sidebar-header {
    display: none;
  }
  .left-sidebar-item {
    padding: 0.8em 0.9em;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: inline-flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .left-sidebar-item .sidebar-icon {
    display: none;
  }
  .left-sidebar {
    text-align: center;
    margin-bottom: 1em;
    border-radius: 7px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    background: inherit;
    gap: 0.3em;
    padding: 0 8px;
    overflow-x: auto;
    -webkit-scroll-snap-type: x proximity;
        -ms-scroll-snap-type: x proximity;
            scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .left-sidebar::-webkit-scrollbar {
    display: none;
  }
  .left-sidebar {
    -webkit-mask-image: -webkit-linear-gradient(left, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 -moz-calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  }
  .left-sidebar.home-sidebar-loggedin {
    display: none;
  }
}
@media (min-width: 800px) {
  .left-sidebar-item {
    margin-bottom: 0.25em;
    padding: 0.55em 0.7em;
    background-color: #eef2f7;
  }
  .middle-content,
  .blog-sidebar,
  .right-sidebar {
    display: block !important;
  }
  .blog-sidebar,
  .right-sidebar {
    -webkit-box-flex: 25%;
    -webkit-flex: 25%;
       -moz-box-flex: 25%;
            flex: 25%;
    max-width: 25%;
  }
  .middle-content {
    margin-right: 2% !important;
  }
  #mobile.tabs {
    display: none;
  }
  #three-col-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
  }
  .middle-content {
    -webkit-box-flex: 75%;
    -webkit-flex: 75%;
       -moz-box-flex: 75%;
            flex: 75%;
    max-width: 75%;
  }
  .left-sidebar {
    width: 13%;
    max-width: 13%;
    min-width: 13%;
    position: fixed;
    top: 66px;
    height: -moz-calc(100vh - 56px - 20px);
    height: calc(100vh - 56px - 20px);
    overflow-y: auto;
    scrollbar-color: auto;
  }
  .left-sidebar::-webkit-scrollbar {
    width: 0;
    background-color: transparent;
  }
  #nav-list {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: flex !important;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
       -moz-box-flex: 1;
            flex-grow: 1;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    gap: 4px;
  }
  #nav-list li {
    text-transform: none;
    margin: 0;
  }
  #nav-list li.home-nav-element {
    padding-right: 20px;
  }
  #nav-list li.home-menu-item {
    display: none;
  }
  #nav-list li:not(.home-nav-element):not(.home-menu-item) {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    height: 56px;
  }
  #nav-list li:not(:hover) > ul {
    display: none !important;
  }
  #nav-list li ul {
    left: 0 !important;
  }
  #nav-list li a:not(.nav-icon-link),
  #nav-list li button:not(.nav-icon-link) {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    height: 100%;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #0f2a44;
    font-weight: 600;
    font-size: initial;
    -webkit-transition: color 0.15s ease;
    -moz-transition: color 0.15s ease;
    transition: color 0.15s ease;
  }
  #nav-list li a:not(.nav-icon-link):link,
  #nav-list li button:not(.nav-icon-link):link {
    color: #0f2a44;
  }
  #nav-list li a:not(.nav-icon-link):hover,
  #nav-list li button:not(.nav-icon-link):hover {
    color: #193b5c;
    background: transparent;
    margin: 0;
  }
  #nav-list li a:not(.nav-icon-link).active,
  #nav-list li button:not(.nav-icon-link).active {
    color: #193b5c;
    background: transparent;
    border-bottom: 3px solid #2bb8be;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  #nav-list li .nav-icon-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    text-decoration: none;
    color: #193b5c;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    -webkit-transition: background 0.15s ease, color 0.15s ease;
    -moz-transition: background 0.15s ease, color 0.15s ease;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    white-space: nowrap;
  }
  #nav-list li .nav-icon-link .nav-label {
    font-size: 0.95em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
  }
  #nav-list li .nav-icon-link:hover {
    background: #f1f5f9;
    color: #0f2a44;
  }
  #nav-list li .nav-icon-link.active {
    background: #e5f7f9;
    color: #14314c;
  }
  #nav-list li .nav-icon-link.active .nav-label {
    font-weight: 600;
  }
  #nav-list li .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
       -moz-transform: translateX(-50%);
            transform: translateX(-50%);
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
            box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
    padding: 4px 0;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.15s ease, visibility 0.15s ease;
    -moz-transition: opacity 0.15s ease, visibility 0.15s ease;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
    margin-top: 8px;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #0f2a44;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    -webkit-transition: background-color 0.15s ease, color 0.15s ease;
    -moz-transition: background-color 0.15s ease, color 0.15s ease;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item:hover {
    background: #e5f7f9;
    color: #193b5c;
  }
  #nav-list li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0);
       -moz-transform: translateX(-50%) translateY(0);
            transform: translateX(-50%) translateY(0);
  }
  .normal-text {
    font-weight: normal;
    font-size: small;
    text-align: left;
  }
  #page-container {
    background: #eef2f7;
  }
  #event-tab {
    display: none;
  }
  #content.wrapper {
    background: white;
    padding: 2em;
    border-radius: 1em;
  }
  .view-next-page {
    display: none;
  }
}
.page-banner {
  text-align: center;
  padding: 1em 1.5em;
  margin-bottom: 1em;
  background: #eef2f7;
  border-radius: 8px;
  border-left: 4px solid #193b5c;
}
.page-banner .page-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.3em 0;
  color: #0a1c2e;
}
.page-banner .page-title a {
  color: inherit;
  text-decoration: none;
}
.page-banner .page-title a:hover {
  color: #193b5c;
}
.page-banner .page-subtitle {
  font-size: 0.9em;
  color: #14314c;
}

.table {
  border-spacing: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5em;
  background: rgba(0, 0, 0, 0.01);
}
.table.striped tr:nth-child(even) {
  background: #eef2f7;
}
.table.striped tr:nth-child(odd) {
  background: #fff;
}
.table.no-border td, .table.no-border th {
  border: none;
}
.table.modern {
  border-radius: 10px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  border: 1px solid #dce5ee;
}
.table.modern.striped tr:nth-child(even), .table.modern.striped tr:nth-child(odd) {
  background: #fff;
}
.table.modern thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}
.table.modern thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}
.table.modern tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.table.modern tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}
.table.modern tr:last-child td {
  border-bottom: 0;
}
.table.modern th {
  font-weight: normal;
}
.table.modern th a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.table.modern th a:hover {
  opacity: 0.85;
}
.table.modern tbody tr {
  -webkit-transition: background-color 0.12s ease;
  -moz-transition: background-color 0.12s ease;
  transition: background-color 0.12s ease;
}
.table.modern tbody tr:hover {
  background: #e5f7f9;
}
.table.modern th, .table.modern td {
  border-left: 0;
  border-right: 0;
}
.table.modern tbody .problem-code, .table.modern tbody .pcode, .table.modern tbody code {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.88em;
  color: #527291;
}
.table th:first-child, .table td:first-child {
  border-width: 1px 1px 0 1px;
}
.table tr:last-child td {
  border-bottom: 1px solid #dce5ee;
}
.table thead th {
  vertical-align: middle;
}
.table th {
  height: 2.4em;
  color: #2f5680;
  background-color: #f1f5f9;
  border-color: #dce5ee;
  border-width: 1px 1px 0 0;
  border-style: solid;
  border-bottom: 1px solid #b6c7da;
  padding: 8px 12px;
  vertical-align: middle;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  font-size: 12px;
  color: #2f5680;
}
.table td {
  border-color: #dce5ee;
  border-width: 1px 1px 0 0;
  border-style: solid;
  padding: 10px 6px;
  vertical-align: middle;
  text-align: center;
  overflow-wrap: break-word;
}

#users-table th a {
  color: #2f5680;
}

.feed-table td, .feed-table td:first-child, .feed-table tr:last-child td, .feed-table tr:last-child td:first-child {
  border-width: 1px 0 0 0;
}

.blog-sidebox .feed-table td {
  padding: 7px 10px;
}
.blog-sidebox .feed-table td:first-child {
  width: 1.5em;
  text-align: right;
  color: #527291;
  padding-right: 8px;
}
.blog-sidebox .feed-table td:nth-child(2) {
  text-align: left;
  width: 100%;
}
.blog-sidebox .feed-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #193b5c;
}

.AB, .QU, .G, .IE, .CE, .OLE, .IR, .RTE, .OTH, .MLE, .TLE, .WA, ._AC, .AC {
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.AC {
  background-color: #15803d;
  color: #fff;
}

._AC {
  background-color: #1b7f84;
  color: #fff;
}

.WA {
  background-color: #dc2626;
  color: #fff;
}

.TLE {
  background-color: #b45309;
  color: #fff;
}

.MLE {
  background-color: #c2410c;
  color: #fff;
}

.OLE, .IR, .RTE, .OTH {
  background-color: #7c3aed;
  color: #fff;
}

.CE {
  background-color: #2f5680;
  color: #fff;
}

.IE {
  background-color: #991b1b;
  color: #fff;
}

.QU, .G {
  background-color: #dce5ee;
  color: #14314c;
}

.AB {
  background-color: #f1f5f9;
  color: #2f5680;
}

.judge-online {
  color: #15803d;
  font-weight: 500;
}

.judge-offline {
  color: #dc2626;
  font-weight: 500;
}

#judge-status td:first-child {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  padding-left: 12px;
}
#judge-status td:nth-last-child(2),
#judge-status td:nth-last-child(3),
#judge-status td:nth-last-child(4) {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #193b5c;
}

@media (max-width: 799px) {
  #judge-status {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}
.middle-content {
  padding-right: 0em;
  vertical-align: top;
  margin-right: 0;
  width: 100%;
}
.middle-content .post {
  border: 1px dotted grey;
  border-radius: 1em;
  border-top: 0.125rem solid #b6c7da;
  padding: 1.25rem 1.25rem 1.563rem;
  margin-bottom: 2em;
}
.middle-content .post .title {
  font-weight: 600;
  font-size: 1.875em;
}
.middle-content .post .title a {
  color: #2f5680 !important;
}
.middle-content .post .title a:hover {
  color: #1b7f84 !important;
}
.left-sidebar-item.active {
  color: #193b5c;
  font-weight: 600;
  background-color: #e5f7f9;
}
.left-sidebar-item.active .sidebar-icon {
  color: #1b7f84;
}

.blog-sidebox h3 {
  padding-bottom: 0.25em;
  padding-left: 0.5em;
}
.blog-sidebox ul {
  padding-left: 1em;
  padding-right: 0.5em;
}
.blog-sidebox ul li {
  margin-bottom: 0.75em;
}
.blog-sidebox .contest {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid #dce5ee;
}
.blog-sidebox .contest:last-child {
  border-bottom: none;
}
.blog-sidebox .contest .name {
  font-size: 1.25em;
  font-weight: 500;
}
.blog-sidebox .contest .name a {
  color: #2f5680 !important;
}
.blog-sidebox .contest .name a:hover {
  color: #1b7f84 !important;
}
.blog-sidebox .contest .time {
  font-size: 12px;
  color: #527291;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.blog-sidebox .feed-table td {
  font-variant-numeric: tabular-nums;
}
.blog-sidebox .feed-table td:first-child {
  color: #527291;
  width: 1.5em;
  text-align: right;
}
.blog-sidebox .feed-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.no-dot-blog-sidebox ul {
  list-style: none;
}

#mobile.tabs {
  margin: 0;
  margin-bottom: 1em;
}

.tabs.tabs-no-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.sort-options select {
  padding: 0.3em 0.5em;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #dce5ee;
  font-size: 0.9em;
}
.sort-options select:focus {
  outline: none;
  border-color: #193b5c;
}

.rssatom {
  text-align: right;
  padding: 0.25em;
  display: block;
}
.rssatom span {
  width: 1em;
  height: 1em;
  padding: 0.1em;
  font-size: 0.8em;
  color: white;
  border-radius: 0.2em;
  display: inline-block;
  margin-right: 0.2em;
  border: 1px solid rgb(201, 90, 18);
  background: #fb9e39;
  background: -webkit-linear-gradient(315deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
  background: -moz-linear-gradient(315deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
  background: linear-gradient(135deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
}
.rssatom span i {
  text-align: center;
  display: block;
}

.blog-box {
  border: 1px solid #dce5ee;
  border-radius: 10px;
  margin-bottom: 1.5em;
  padding: 16px 20px 12px;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  -webkit-transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  -moz-transition: box-shadow 0.15s ease, border-color 0.15s ease;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
}
.blog-box .title {
  margin-bottom: 0.2em;
  font-weight: 600;
}

.blog-box:hover {
  border-color: #b6c7da;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
}

.blog-description {
  max-height: 30em;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding-bottom: 1em;
  clear: both;
  position: relative;
}

.problem-feed-name {
  display: inline;
  font-weight: bold;
}

.problem-feed-name a {
  color: #2f5680;
}

.problem-feed-info-entry {
  display: inline;
  float: right;
}

.problem-feed-types {
  color: #527291;
}

.feed-table {
  margin: 0;
}

.pre-expand-blog {
  position: relative;
  padding-bottom: 0;
}

.show-more {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  color: #2f5680;
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
  position: absolute;
  inset: 50% 0 0;
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(65%, #fff));
  background: -webkit-linear-gradient(transparent, #fff 65%);
  background: -moz-linear-gradient(transparent, #fff 65%);
  background: linear-gradient(transparent, #fff 65%);
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  cursor: pointer;
  padding: 16px;
  -webkit-transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.show-more:hover {
  color: #1b7f84;
}

.actionbar-box {
  margin: 8px 16px;
}

.post-full .post-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-full .post-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dce5ee;
}
.post-full .post-author-img {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.post-full .post-author-img img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.post-full .post-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.5rem;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.post-full .post-organizations {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.4rem;
}
.post-full .post-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.post-full .post-separator {
  opacity: 0.5;
}
.post-full .post-time {
  opacity: 0.7;
}
.post-full .post-time i {
  margin-right: 0.25rem;
  font-size: 0.85rem;
}
.post-full .post-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-left: auto;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.post-full .post-action-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #527291;
  background: #eef2f7;
  border-radius: 6px;
  text-decoration: none;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.post-full .post-action-btn i {
  font-size: 0.9rem;
}
.post-full .post-action-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f2a44;
}
.post-full .post-action-btn .badge {
  background: #193b5c;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 1.2rem;
  text-align: center;
}

.middle-right-content.wrapper {
  padding: 1em 0;
  background: white;
  border-radius: 1em;
}

.post-content-header {
  margin-left: 0;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.2em;
}

@media (max-width: 799px) {
  .actionbar-box {
    margin: 8px 0;
  }
  .blog-box {
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 0;
  }
  .post-title {
    font-size: 1.6em;
  }
  #home-feed-tabs {
    display: block;
  }
  #home-feed-tabs .sort-options {
    margin-top: 1em;
    margin-left: 1em;
  }
}
@media (min-width: 800px) {
  .feed-table {
    font-size: small;
  }
  .post-full {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .post-full .post-title {
    font-size: 1.6em;
  }
}
.feed-inline-card {
  padding: 0.75em 1em !important;
}

.feed-inline-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4em;
  margin-bottom: 0.6em;
  font-size: 1.05em;
  font-weight: 700;
  color: #0f2a44;
}
.feed-inline-header i {
  color: #193b5c;
  font-size: 1.1em;
}
.feed-inline-header a {
  margin-left: auto;
  font-size: 0.75em;
  font-weight: 500;
  color: #193b5c;
  text-decoration: none;
}

.feed-inline-items {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5em;
}

.feed-inline-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 calc(50% - 0.25em);
     -moz-box-flex: 1;
          flex: 1 1 calc(50% - 0.25em);
  min-width: 0;
  padding: 0.5em 0.75em;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  text-decoration: none;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-inline-item:hover {
  border-color: #193b5c;
}

.feed-inline-item-name {
  font-size: 0.85em;
  font-weight: 500;
  color: #0f2a44;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.feed-inline-item-meta {
  font-size: 0.8em;
  color: #527291;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  margin-left: 0.5em;
}

.feed-comment-card {
  padding: 0.75em 1em !important;
}

.feed-comment-reason {
  font-size: 0.85em;
  color: #527291;
  margin-bottom: 0.5em;
}
.feed-comment-reason i {
  color: #193b5c;
  margin-right: 0.3em;
}

.feed-comment-content a {
  text-decoration: none;
}

.feed-comment-title {
  margin: 0;
  font-size: 1em;
  font-weight: 600;
  color: #0f2a44;
}

.feed-comment-meta {
  font-size: 0.85em;
  color: #527291;
  margin-top: 0.2em;
}

.feed-list-items {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
}

.feed-list-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.6em;
  padding: 0.4em 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #0f2a44;
}
.feed-list-row:last-child {
  border-bottom: none;
}
.feed-list-row:hover {
  color: #193b5c;
}

.feed-list-logo {
  height: 2em;
  width: 2em;
  border-radius: 6px;
  object-fit: cover;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.feed-list-name {
  font-size: 0.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-contest-info {
  font-size: 0.85em;
  color: #527291;
  margin-bottom: 0.5em;
}
.feed-contest-info i {
  margin-right: 0.2em;
}

.feed-problem-table {
  font-size: 0.9em;
  margin-top: 0.5em;
}
.feed-problem-table th {
  font-size: 0.85em;
  text-transform: uppercase;
}

.blog-sidebox .view-all-link {
  float: right;
  font-size: 0.75em;
  font-weight: normal;
}
.blog-sidebox .sidebar-item {
  padding: 0.4em 0.5em;
  border-bottom: 1px solid #f1f5f9;
}
.blog-sidebox .sidebar-item:last-child {
  border-bottom: none;
}
.blog-sidebox .sidebar-item a {
  font-weight: 500;
}
.blog-sidebox .sidebar-item-meta {
  font-size: 0.85em;
  color: #527291;
}

.welcome-banner {
  position: relative;
  padding: 1em 1.25em;
  margin-bottom: 1em;
  background: #e5f7f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
.welcome-banner h3 {
  margin: 0 0 0.5em 0;
  font-size: 1em;
}

.welcome-banner-close {
  position: absolute;
  top: 0.5em;
  right: 0.75em;
  background: none;
  border: none;
  font-size: 1.25em;
  cursor: pointer;
  color: #8aa5c0;
  padding: 0;
  line-height: 1;
}

.welcome-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5em;
}

.welcome-pill {
  display: inline-block;
  padding: 0.35em 0.75em;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  font-size: 0.85em;
  color: #193b5c;
  text-decoration: none;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.welcome-pill:hover {
  border-color: #193b5c;
  color: #193b5c;
}
.welcome-pill i {
  margin-right: 0.25em;
}

.visitor-banner {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  padding: 1em 1.25em;
  margin-bottom: 1em;
  background: #e5f7f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
.visitor-banner h3 {
  margin: 0;
  font-size: 1em;
}

.visitor-banner-stats {
  font-size: 0.85em;
  color: #527291;
}

.visitor-banner-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.visitor-banner-login {
  color: #193b5c;
  font-weight: 600;
  text-decoration: none;
}

.visitor-banner-signup {
  display: inline-block;
  padding: 0.4em 1em;
  background: #193b5c;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9em;
}
.visitor-banner-signup:hover {
  background: rgb(16.2820512821, 38.4256410256, 59.9179487179);
  color: #fff;
}

@media (max-width: 799px) {
  .visitor-banner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 0.75em;
    text-align: center;
  }
}
.blog-edit-page {
  max-width: 900px;
  margin: 1em auto;
}
.blog-edit-page .blog-edit-field {
  margin-bottom: 1.25em;
}
.blog-edit-page .blog-edit-field > label {
  display: block;
  margin-bottom: 0.4em;
}
.blog-edit-page .blog-edit-field .blog-edit-field-wrapper input[type=text],
.blog-edit-page .blog-edit-field .blog-edit-field-wrapper textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.blog-edit-page .blog-edit-help {
  display: block;
  margin-top: 0.3em;
}
.blog-edit-page .blog-edit-actions {
  margin-top: 1.5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.75em;
}
.blog-edit-page .blog-edit-actions .button {
  display: inline-block;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
}

.stat-band {
  position: relative;
  background-color: #0f2a44;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M32 0H0v32' fill='none' stroke='%235fe0e5' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  border-bottom: 1px solid #2bb8be;
  overflow: hidden;
  margin-bottom: 16px;
}
@media (min-width: 800px) {
  .stat-band {
    margin-left: 15%;
    margin-right: 2%;
    border-radius: 10px;
    border-bottom: none;
    -webkit-box-shadow: inset 0 -1px 0 0 #2bb8be;
            box-shadow: inset 0 -1px 0 0 #2bb8be;
  }
}
.stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: -webkit-radial-gradient(12% 0%, 120% 180%, rgba(95, 224, 229, 0.1) 0%, rgba(95, 224, 229, 0) 60%);
  background: -moz-radial-gradient(12% 0%, 120% 180%, rgba(95, 224, 229, 0.1) 0%, rgba(95, 224, 229, 0) 60%);
  background: radial-gradient(120% 180% at 12% 0%, rgba(95, 224, 229, 0.1) 0%, rgba(95, 224, 229, 0) 60%);
  pointer-events: none;
}

.stat-band-inner {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
     -moz-box-align: stretch;
          align-items: stretch;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}

.stat-band-figures {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 40px;
  min-width: 0;
}

.stat-cell {
  min-width: 0;
}

.stat-cell-label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  color: #b6c7da;
  margin-bottom: 6px;
  white-space: nowrap;
}

.stat-cell-icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  color: #5fe0e5;
}
.stat-cell-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.stat-band .stat-cell-value {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}

.stat-cell-extra {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 12px;
  color: #5fe0e5;
  margin-top: 4px;
}

.stat-band-identity {
  display: block;
}

.stat-band-wordmark {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.stat-band-tagline {
  margin: 4px 0 12px;
  font-size: 13px;
  color: #b6c7da;
}

.stat-band-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 8px;
}

.stat-band-contest {
  -webkit-box-shadow: inset 4px 0 0 0 #dce5ee;
          box-shadow: inset 4px 0 0 0 #dce5ee;
  display: block;
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 26rem;
     -moz-box-flex: 0;
          flex: 0 1 26rem;
  min-width: 15rem;
  padding: 10px 12px 10px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  -webkit-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-band-contest.is-live {
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be;
          box-shadow: inset 4px 0 0 0 #2bb8be;
}
.stat-band-contest:hover, .stat-band-contest:focus-visible {
  background: rgba(0, 0, 0, 0.34);
  text-decoration: none;
}
.stat-band-contest:focus-visible {
  outline: none;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 0 0 3px rgba(95, 224, 229, 0.45);
}

.stat-band-contest-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-band-contest-time {
  font-size: 12px;
  color: #b6c7da;
  margin-top: 2px;
}
.stat-band-contest-time .time-remaining {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #5fe0e5;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5fe0e5;
  -webkit-box-shadow: 0 0 0 0 rgba(95, 224, 229, 0.7);
          box-shadow: 0 0 0 0 rgba(95, 224, 229, 0.7);
  -webkit-animation: live-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
     -moz-animation: live-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
          animation: live-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@-webkit-keyframes live-pulse {
  70% {
    -webkit-box-shadow: 0 0 0 6px rgba(95, 224, 229, 0);
            box-shadow: 0 0 0 6px rgba(95, 224, 229, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(95, 224, 229, 0);
            box-shadow: 0 0 0 0 rgba(95, 224, 229, 0);
  }
}

@-moz-keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 6px rgba(95, 224, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 224, 229, 0);
  }
}

@keyframes live-pulse {
  70% {
    -webkit-box-shadow: 0 0 0 6px rgba(95, 224, 229, 0);
            box-shadow: 0 0 0 6px rgba(95, 224, 229, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(95, 224, 229, 0);
            box-shadow: 0 0 0 0 rgba(95, 224, 229, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot {
    -webkit-animation: none;
       -moz-animation: none;
            animation: none;
  }
}
@media (max-width: 799px) {
  .stat-band-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 12px;
    padding: 12px 4%;
  }
  .stat-band-figures {
    gap: 0;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    width: 100%;
  }
  .stat-cell-value {
    font-size: 24px;
  }
  .stat-band-contest {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }
}
#problem-table th {
  white-space: nowrap;
}
#problem-table th.problem, #problem-table th.category, #problem-table th.pcode {
  text-align: left;
  padding-left: 1em;
}
#problem-table th.points, #problem-table th.ac-rate, #problem-table th.users {
  text-align: right;
  padding-right: 1em;
}
#problem-table td.category {
  text-align: left;
  padding: 0 1em;
}
#problem-table td.problem {
  text-align: left;
  padding-left: 1em;
  font-size: 15px;
  font-weight: 600;
  width: auto;
  white-space: nowrap;
}
#problem-table td.pcode {
  white-space: nowrap;
  text-align: left;
  width: 100%;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: #193b5c;
}
#problem-table td.p, #problem-table td.users, #problem-table td.ac-rate {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
}
#problem-table td.p {
  font-weight: 700;
  font-size: 15px;
  color: #0f2a44;
  text-align: right;
  padding-right: 1em;
}
#problem-table td.ac-rate {
  text-align: right;
  padding-right: 1em;
}
#problem-table td.users {
  color: #527291;
  text-align: right;
  padding-right: 1em;
}
#problem-table td[solved] {
  -webkit-box-shadow: inset 3px 0 0 0 #dce5ee;
          box-shadow: inset 3px 0 0 0 #dce5ee;
}
#problem-table td[solved="1"] {
  -webkit-box-shadow: inset 3px 0 0 0 #166534;
          box-shadow: inset 3px 0 0 0 #166534;
}
#problem-table td[solved="0"] {
  -webkit-box-shadow: inset 3px 0 0 0 #f59e0b;
          box-shadow: inset 3px 0 0 0 #f59e0b;
}
#problem-table td.pp {
  text-align: left;
  padding-left: 1em;
  width: 100%;
}
#problem-table td.users, #problem-table td.ac-rate, #problem-table td.points {
  white-space: nowrap;
}
#problem-table td.types {
  text-align: left;
  padding: 0 1em;
}
#problem-table .pcodecell {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #193b5c;
  text-decoration: none;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
#problem-table .pcodecell:hover {
  background: #e5f7f9;
  color: #1b7f84;
}
#problem-table .ac-rate-cell {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
     -moz-box-align: stretch;
          align-items: stretch;
  gap: 4px;
  min-width: 3.4em;
}
#problem-table .ac-rate-cell .ac-rate-value {
  line-height: 1.15;
}
#problem-table .ac-rate-meter {
  height: 4px;
  border-radius: 999px;
  background: #b6c7da;
  overflow: hidden;
}
#problem-table .ac-rate-meter::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--rate, 0%);
  border-radius: inherit;
  background: #2bb8be;
  -webkit-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
#problem-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  z-index: 2;
}
#problem-table tr {
  -webkit-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
#problem-table tr:hover {
  background: #e5f7f9;
}
#problem-table tr:hover td.problem a {
  color: #1b7f84;
}
#problem-table tr:hover .pcodecell {
  background: #fff;
  color: #1b7f84;
}
#problem-table tr:hover .ac-rate-meter::after {
  background: #1b7f84;
}

@media (max-width: 799px) {
  #problem-table thead th {
    top: 44px;
  }
  #problem-table td.problem {
    white-space: normal;
  }
  #problem-table td.p, #problem-table td.ac-rate, #problem-table td.users,
  #problem-table th.points, #problem-table th.ac-rate, #problem-table th.users {
    padding-right: 6px;
  }
  #problem-table td.problem, #problem-table th.problem {
    padding-left: 6px;
  }
  #problem-table .ac-rate-cell {
    min-width: 0;
  }
}
#filter-form {
  vertical-align: top;
  margin-bottom: 0.5em;
  margin-top: 0.75em;
}
#filter-form a {
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
}
#filter-form input {
  vertical-align: middle;
  margin-bottom: 0.5em;
}
#filter-form label {
  vertical-align: middle;
}
#filter-form input[type=checkbox] {
  accent-color: #193b5c;
  width: 15px;
  height: 15px;
  margin: 0;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  cursor: pointer;
}
#filter-form .filter-toggle {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin: 0 -6px;
  padding: 6px;
  border-radius: 6px;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
#filter-form .filter-toggle:hover {
  background: #f1f5f9;
}
#filter-form .filter-toggle label {
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  color: #193b5c;
}
#filter-form .filter-form-group {
  margin-top: 15px;
}

#content-right.problems {
  -webkit-box-flex: 25%;
  -webkit-flex: 25%;
     -moz-box-flex: 25%;
          flex: 25%;
  max-width: unset;
  padding-top: 0;
  padding-left: 0;
}

#content-left.problems {
  -webkit-box-flex: 73.5%;
  -webkit-flex: 73.5%;
     -moz-box-flex: 73.5%;
          flex: 73.5%;
}

.problem-sidebar {
  padding-bottom: 1em;
}

.info-float .sidebar-section {
  background: #eef2f7;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.info-float .link-row {
  border-radius: 6px;
  margin: 2px 0;
  padding: 8px 10px;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.info-float .link-row:hover {
  background: #eef2f7;
  -webkit-transform: translateX(2px);
     -moz-transform: translateX(2px);
          transform: translateX(2px);
}
.info-float .link-row a {
  font-size: 0.9rem;
}
.info-float .link-row a i {
  color: #193b5c;
  width: 1.4em;
}
.info-float .link-row .badge {
  background: #dc2626;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 0.5em;
}
.info-float hr {
  border: none;
  border-top: 1px solid #dce5ee;
  margin: 0.5rem 0;
}
.info-float .problem-info-entry {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.info-float .problem-info-entry i {
  color: #193b5c;
  width: 1.4em;
}
.info-float .problem-lang-limits {
  background: #eef2f7;
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.info-float .problem-lang-limits .lang-limit {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  padding: 0.2rem 0.5rem;
}
.info-float .problem-lang-limits .lang-limit:not(:last-child) {
  border-bottom: 1px solid #dce5ee;
}
.info-float .problem-lang-limits .lang-limit .lang-name {
  font-weight: 500;
}
.info-float .problem-lang-limits .lang-limit .lang-tl, .info-float .problem-lang-limits .lang-limit .lang-ml {
  color: #527291;
}
.info-float .authors-value, .info-float .judges-value {
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.info-float .toggle {
  cursor: pointer;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.info-float .toggle:hover {
  color: #193b5c;
}
.info-float .toggle i {
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -moz-transition: transform 0.2s ease, -moz-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease, -moz-transform 0.2s ease;
  width: 1em;
}
.info-float .toggle.open i {
  -webkit-transform: rotate(90deg);
     -moz-transform: rotate(90deg);
          transform: rotate(90deg);
}
.info-float .toggled {
  font-size: 0.85rem;
  color: #193b5c;
  padding: 0.3rem 0 0.3rem 1.4rem;
}

#search {
  width: 100%;
  height: 2.3em;
}

#category {
  margin-top: 0.5em;
  width: 100%;
}

#types {
  width: 100%;
}

span.type-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  color: #193b5c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

ul.problem-list {
  list-style: none;
  padding-left: 1em;
  padding-right: 0.5em;
}
ul.problem-list li {
  margin-bottom: 0.5em;
}

.pi-name {
  font-weight: 700;
  color: #343a40;
  margin: 0;
  font-size: 15px;
}

.pi-name:after {
  content: " ";
}

.authors-value, .judges-value {
  padding-left: 1.5em;
}

.lang-name:after {
  content: ": ";
}

.lang-limit {
  margin-left: 1.5em;
}

.problem-no-judge {
  color: #527291;
}

.solved-problem-color {
  color: #15803d;
}

.unsolved-problem-color {
  color: #8aa5c0;
}

.attempted-problem-color {
  color: #b45309;
}

.submissions-left {
  color: black;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5em;
}

.no-submissions-left {
  color: red;
}

.organization-tags {
  padding-left: 0.75em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}

.organization-tag {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.15em 0.3em;
  border-radius: 0.15em;
  font-weight: 600;
  margin-right: 0.45em;
  position: relative;
  background-color: #dce5ee;
  color: initial;
  min-height: 1.5em;
}

.organization-tag a {
  color: #000;
}

.pdf-icon {
  position: relative;
  display: inline-block;
  font-size: 1.5em;
}
.pdf-icon .pdf-icon-logo {
  color: #d40e13;
}
.pdf-icon .pdf-icon-bar {
  height: 0.2em;
  display: block;
  position: absolute;
  top: 0.3em;
  background: #d40e13;
  width: 0.6em;
  margin-left: -0.15em;
}

.license {
  float: left;
  font-size: 0.85em;
}
.license a {
  color: gray;
  text-decoration: none;
}

.clarify {
  float: right;
}

#problem_submit {
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
#problem_submit .button {
  display: inline-block !important;
  padding: 6px 12px;
}
#problem_submit .submit-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce5ee;
}
#problem_submit .submit-footer-file {
  min-width: 0;
}
#problem_submit .submit-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin-left: auto;
}
#problem_submit .submit-bar .select2-container .select2-selection--single {
  height: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  border-radius: 8px;
}
#problem_submit .submit-bar .select2-container .select2-selection__arrow {
  height: 100%;
  top: 0;
}
#problem_submit #submit-button {
  width: auto;
  min-width: 9em;
  height: 42px;
}
#problem_submit #countdown-timer:not(:empty) {
  font-size: 13px;
  font-weight: 500;
  color: #b45309;
  white-space: nowrap;
}
#problem_submit input[type=file] {
  max-width: 100%;
  font-size: 13px;
  color: #527291;
}
#problem_submit input[type=file]::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  color: #193b5c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
#problem_submit input[type=file]::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  color: #193b5c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
#problem_submit input[type=file]::-webkit-file-upload-button:hover {
  background: #f1f5f9;
  border-color: #b6c7da;
  color: #193b5c;
}
#problem_submit input[type=file]::file-selector-button:hover {
  background: #f1f5f9;
  border-color: #b6c7da;
  color: #193b5c;
}
#problem_submit .submit-no-judge {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #fcd9a0;
  border-radius: 8px;
  background: #fef6e7;
  color: #92400e;
  font-weight: 500;
}
#problem_submit #submit-wrapper {
  margin-top: 0.7em;
}
#problem_submit #submit-wrapper #editor, #problem_submit #submit-wrapper #language {
  margin-top: 4px;
}
#problem_submit #editor .django-ace-widget,
#problem_submit #editor .django-ace-editor {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  overflow: hidden;
}
#problem_submit #editor .django-ace-toolbar {
  background: #f1f5f9;
  background-image: none;
  border-bottom: 1px solid #dce5ee;
  color: #527291;
  text-shadow: none;
}
#problem_submit #editor .ace_editor {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
}
#problem_submit #output-only-upload {
  margin-top: 4px;
  padding: 1.5em 1em;
  border: 1px dashed #dce5ee;
  border-radius: 4px;
  text-align: center;
  background: #eef2f7;
  color: #0f2a44;
  font-size: 1.05em;
  cursor: pointer;
}
#problem_submit #output-only-upload:hover {
  border-color: #0f2a44;
}
#problem_submit #output-only-upload .fa {
  margin-right: 0.4em;
}
#problem_submit #id_language {
  width: 100%;
}
#problem_submit #result-version-info {
  border-bottom: 1px solid rgb(148, 148, 148);
  margin: 0px 1em;
  color: #757575;
  font-weight: 600;
  padding: 0.2em 0;
  text-align: right;
}
#problem_submit #language-select2 .select2-results__message {
  white-space: nowrap;
}
#problem_submit #language-select2.select2-dropdown--above {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: column-reverse;
     -moz-box-orient: vertical;
     -moz-box-direction: reverse;
          flex-direction: column-reverse;
}
#problem_submit #language-select2 .select2-results__option {
  color: #757575 !important;
  background: white !important;
}
#problem_submit #language-select2 .select2-results__option--highlighted {
  text-decoration: underline;
}
#problem_submit #language-select2 .select2-results__option[aria-selected=true] {
  font-weight: bold;
  color: black !important;
}
#problem_submit #language-select2 .select2-results__option {
  padding: 4px 0px;
}
#problem_submit #language-select2 .select2-results__options {
  overflow-y: visible !important;
}
#problem_submit #language-select2 .select2-results__option {
  -webkit-column-break-inside: avoid;
     -moz-column-break-inside: avoid;
          break-inside: avoid-column;
}
#problem_submit #language-select2 .select2-results {
  -webkit-columns: 10 7em;
  -moz-columns: 10 7em;
  columns: 10 7em;
  padding-left: 1.5em;
  padding-top: 0.5em;
}

@media (max-width: 550px) {
  #problem-table tr .users {
    display: none;
  }
}
@media (max-width: 500px) {
  #problem-table tr .category,
  #problem-table tr .types {
    display: none;
  }
}
@media (max-width: 440px) {
  #problem-table tr .pcode {
    display: none;
  }
}
@media (max-width: 350px) {
  #problem-table tr :nth-child(3) {
    display: none;
  }
}
#problem-table th a {
  color: inherit;
  display: block;
  padding: 4px 10px;
}

#filter-form .form-label {
  margin-top: 0.5em;
  font-style: italic;
}

#point-slider {
  margin: 30px 15px 10px;
  height: 10px;
}
#point-slider .noUi-handle {
  height: 20px;
  width: 16px;
  left: -8px;
}
#point-slider .noUi-handle:before, #point-slider .noUi-handle:after {
  top: 3px;
  height: 12px;
}
#point-slider .noUi-handle:before {
  left: 5px;
}
#point-slider .noUi-handle:after {
  left: 8px;
}
#point-slider .noUi-tooltip {
  height: 17px;
  line-height: 13px;
  padding: 0 3px;
  font-size: 13px;
}

.pcodecell {
  text-transform: uppercase;
}

.problem-data-form .bad-file input, .problem-data-form .bad-file .select2-selection {
  border-color: gray;
}

#case-table .select2 {
  text-align: initial;
}
#case-table tbody td {
  white-space: nowrap;
}

.order-column {
  width: 1em;
}

.type-column {
  width: 8em;
}

span.order {
  padding-right: 0.5em;
}

body.dragging, body.dragging * {
  cursor: move !important;
}

.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

i.fa-ellipsis-v {
  cursor: move;
}

#submit-button {
  margin-bottom: 1em;
}

input[name*=generator_args] {
  font-size: 14px;
  padding: 3px 6px;
}

.generator-args-container {
  position: relative;
  min-height: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.generator-args-icon {
  color: #527291;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  border: 1px dashed #dce5ee;
  border-radius: 3px;
  background: #f1f5f9;
}
.generator-args-icon:hover {
  color: #0f2a44;
  border-color: #8aa5c0;
  background: #f1f5f9;
}

.generator-args-hidden {
  display: none !important;
}

#generator-script-modal,
#testcase-json-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
#generator-script-modal .modal-content,
#testcase-json-modal .modal-content {
  background: #eef2f7;
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.generator-script-container .btn,
.testcase-json-container .btn {
  padding: 5px 10px;
  border: 1px solid #dce5ee;
  background: #eef2f7;
  cursor: pointer;
  border-radius: 3px;
}
.generator-script-container .btn:hover,
.testcase-json-container .btn:hover {
  background: #f1f5f9;
}

.textarea-with-lines {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.4;
}

#line-numbers,
#testcase-json-line-numbers {
  background: #f1f5f9;
  border-right: 1px solid #dce5ee;
  color: #527291;
  padding: 10px 5px;
  text-align: right;
  min-width: 30px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  white-space: pre-line;
}

#generator-script-textarea,
#testcase-json-textarea {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-height: 300px;
  line-height: 1.4;
}

#add-case-row {
  background: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.problem-clarification {
  border-bottom: 1px solid #dce5ee;
  margin-top: 1em;
  margin-bottom: 1em;
}

#clarification_header {
  color: red;
  cursor: pointer;
}

#clarification_header:hover {
  color: orange;
}

#comment-announcement {
  margin-top: 1em;
  background-color: lightgray;
  border-radius: 30px;
  padding: 0.5em;
  text-align: center;
  cursor: pointer;
  color: dimgrey;
  font-weight: bold;
}

#comment-announcement:hover {
  background-color: gray;
}

@media (max-width: 799px) {
  .problem-middle-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: column-reverse;
       -moz-box-orient: vertical;
       -moz-box-direction: reverse;
            flex-direction: column-reverse;
  }
}
@media (min-width: 800px) {
  #problem-table .pcode {
    min-width: 7em;
  }
}
.new-problem-info {
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 12px 8px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.info-block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dce5ee;
  -webkit-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  font-size: 13px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
          justify-content: flex-start;
  min-width: 0;
}

.info-block .pi-name {
  color: #527291;
}

.info-block .new-pi-value {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f2a44;
}

.info-block:hover {
  border-color: #b6c7da;
}

.info-block i {
  color: #2f5680;
  width: 16px;
  text-align: center;
  font-size: 13px;
  background: none;
}

@media screen and (max-width: 1200px) {
  .new-problem-info {
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
    padding: 12px 8px;
    gap: 6px;
  }
  .info-block {
    font-size: 13px;
    gap: 5px;
    padding: 6px;
  }
  .info-block i {
    font-size: 12px;
    width: 15px;
  }
  .pi-name {
    font-size: 12px;
  }
  .new-pi-value {
    font-size: 14px;
  }
}
@media screen and (max-width: 900px) {
  .new-problem-info {
    font-size: 14px;
    padding: 12px 6px;
    gap: 8px 4px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  .info-block {
    font-size: 14px;
    gap: 4px;
    padding: 5px 3px;
  }
  .info-block:nth-child(3) {
    grid-column: 1/3;
    grid-row: 2/3;
  }
  .info-block:nth-child(4) {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .info-block:nth-child(5) {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .info-block i {
    font-size: 13px;
    width: 14px;
  }
  .pi-name {
    font-size: 13px;
  }
  .new-pi-value {
    font-size: 13px;
  }
}
@media screen and (max-width: 600px) {
  .new-problem-info {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
  }
  .info-block {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
       -moz-box-pack: start;
            justify-content: flex-start;
  }
  .info-block:nth-child(3) {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .info-block:nth-child(4) {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .info-block:nth-child(5) {
    grid-column: 1/2;
    grid-row: 5/6;
  }
}
.problem-raw body {
  page-break-after: always;
  background: white;
  padding: 1.5em 2em 4em 2em;
}
.problem-raw .new-problem-info {
  padding: 18px 8px;
  gap: 12px 8px;
  font-size: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.problem-raw .info-block {
  gap: 6px;
  padding: 8px 6px;
  border-radius: 4px;
  font-size: 16px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.problem-raw .info-block:nth-child(4) {
  grid-column: 1/2;
  grid-row: 2/3;
}
.problem-raw .info-block:nth-child(5) {
  grid-column: 2/3;
  grid-row: 2/3;
}
.problem-raw .info-block i {
  width: 16px;
  font-size: 15px;
  padding: 0;
}
.problem-raw .pi-name {
  font-size: 15px;
}
.problem-raw .new-pi-value {
  font-size: 15px;
  padding: 0 4px;
}
.problem-raw .md-typeset details {
  -webkit-box-shadow: var(--md-shadow-z1);
          box-shadow: var(--md-shadow-z1);
  padding-bottom: 0.6rem;
}
.problem-raw .md-typeset details[open] > summary {
  border-radius: 0.1rem 0.1rem 0 0;
}
.problem-raw .content-description {
  padding-bottom: 0.5em;
}
@media print {
  .problem-raw .new-problem-info {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: flex !important;
    -webkit-flex-wrap: wrap !important;
            flex-wrap: wrap !important;
    page-break-inside: avoid;
    gap: 12px !important;
    padding: 12px 8px !important;
    font-size: 12px !important;
  }
  .problem-raw .info-block {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
       -moz-box-align: center !important;
            align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    -webkit-flex-shrink: 0 !important;
            flex-shrink: 0 !important;
    min-width: auto !important;
    width: auto !important;
  }
  .problem-raw .info-block i {
    display: none !important;
  }
  .problem-raw .pi-name, .problem-raw .new-pi-value {
    font-size: 11px !important;
    margin: 0 !important;
    padding: 0 2px !important;
  }
}

@media screen and (min-width: 1100px) {
  .d-flex-problem {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
       -moz-box-pack: start;
            justify-content: flex-start;
  }
}
body:not(.problem-raw) .new-problem-info {
  font-size: 13px;
  padding: 12px 8px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
          justify-content: flex-start;
  gap: 8px;
}
body:not(.problem-raw) .info-block {
  font-size: 13px;
  gap: 5px;
  padding: 7px 10px;
}
body:not(.problem-raw) .info-block i {
  font-size: 12px;
  width: 15px;
}
body:not(.problem-raw) .pi-name {
  font-size: 12px;
}
body:not(.problem-raw) .new-pi-value {
  font-size: 13px;
}

.problem-page-container {
  padding: 20px;
}

.problem-content-layout {
  width: 100%;
}

.problem-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  -webkit-box-align: start;
  -webkit-align-items: start;
     -moz-box-align: start;
          align-items: start;
}
.problem-content-grid.single-column {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.problem-card {
  margin-bottom: 10px;
}
.problem-card .card-header {
  padding: 20px 20px;
}
.problem-card .card-body {
  padding: 20px;
}

.problem-form-group {
  margin-bottom: 25px;
}

.problem-form-label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0f2a44;
}

.problem-help-text {
  font-size: 0.875rem;
  color: #527291;
  margin-top: 5px;
}

.problem-form-actions {
  margin-top: 20px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.problem-form-actions .action-btn {
  margin-right: 10px;
}

.required-asterisk {
  color: #dc2626 !important;
}

.error-message {
  color: #dc2626 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.alert {
  margin-bottom: 20px;
  border-radius: 4px;
  padding: 15px;
  border: 1px solid;
  position: relative;
}
.alert .fa {
  margin-right: 8px;
}
.alert .close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.alert .close:hover {
  opacity: 1;
}

.alert-success {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
  -webkit-animation: fadeInOut 5s ease-in-out forwards;
     -moz-animation: fadeInOut 5s ease-in-out forwards;
          animation: fadeInOut 5s ease-in-out forwards;
}

.alert-danger {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}

.alert-info {
  background-color: #d1ecf1 !important;
  border-color: #bee5eb !important;
  color: #0c5460 !important;
}

@-webkit-keyframes fadeInOut {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  80% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}

@-moz-keyframes fadeInOut {
  0% {
    opacity: 0;
    -moz-transform: translateY(-10px);
         transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    -moz-transform: translateY(0);
         transform: translateY(0);
  }
  80% {
    opacity: 1;
    -moz-transform: translateY(0);
         transform: translateY(0);
  }
  100% {
    opacity: 0;
    -moz-transform: translateY(-10px);
         transform: translateY(-10px);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
       -moz-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
            transform: translateY(0);
  }
  80% {
    opacity: 1;
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-10px);
       -moz-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
.language-limits-page .table {
  margin-bottom: 0;
}
.language-limits-page .table th {
  padding: 12px 15px;
  font-size: 1em;
}
.language-limits-page .table td {
  padding: 12px 15px;
}
.language-limits-page .default-limits-box {
  background-color: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 5px;
  padding: 15px;
  margin-top: 20px;
}
.language-limits-page .select2-container {
  width: 50% !important;
}
.language-limits-page #id_memory_unit {
  min-width: 45px;
  height: 25px;
  font-size: 14px;
  margin-left: 6px;
}

.language-templates-page .template-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.language-templates-page .template-source-code {
  height: 200px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
}
.language-templates-page .template-source-code .ace_editor {
  font-size: 13px !important;
}
.language-templates-page .template-source-code .ace_gutter {
  background: #eef2f7;
  border-right: 1px solid #dce5ee;
}
.language-templates-page .template-card {
  margin-bottom: 15px;
}
.language-templates-page .template-language {
  font-weight: 600;
  color: #14314c;
}
.language-templates-page #id_language {
  width: 50% !important;
}

.solutions-page .form-section {
  min-height: 400px;
}
.solutions-page .solution-card {
  margin-bottom: 15px;
}
.solutions-page .solution-authors {
  font-weight: 600;
  color: #14314c;
}
.solutions-page .solution-content {
  max-height: 300px;
  overflow-y: auto;
  background-color: #eef2f7;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}

.translations-page .translation-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.translations-page .translation-card {
  margin-bottom: 15px;
}
.translations-page .translation-language {
  font-weight: 600;
  color: #14314c;
}

.problem-edit-form {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.problem-edit-form input#id_code {
  width: 24em;
  max-width: 100%;
}
.problem-edit-form input#id_name {
  width: 32em;
  max-width: 100%;
}

.problem-add-form {
  max-width: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.problem-edit-form input:disabled,
.problem-edit-form select:disabled,
.problem-edit-form textarea:disabled,
.language-limits-page input:disabled,
.language-limits-page select:disabled,
.language-limits-page textarea:disabled {
  background-color: #f1f5f9 !important;
  border-color: #dce5ee !important;
  color: #0f2a44;
  opacity: 0.7;
  cursor: not-allowed;
}
.problem-edit-form .select2-container--disabled .select2-selection,
.language-limits-page .select2-container--disabled .select2-selection {
  background-color: #f1f5f9 !important;
  border-color: #dce5ee !important;
  opacity: 0.7;
  cursor: not-allowed;
}

.tab-navigation {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  border-bottom: 2px solid #dce5ee;
  background: #f1f5f9;
  overflow-x: auto;
  white-space: nowrap;
}

.tab-button {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  color: #193b5c;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
}
.tab-button:hover {
  background: rgba(0, 124, 186, 0.05);
  color: #007cba;
}
.tab-button.active {
  color: #007cba;
  border-bottom-color: #007cba;
  background: rgba(0, 124, 186, 0.1);
}
.tab-button.has-errors {
  color: #dc3545;
  position: relative;
}
.tab-button.has-errors::after {
  content: "!";
  position: absolute;
  top: 5px;
  right: 10px;
  background: #dc3545;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.tab-pane {
  display: none;
  padding: 30px;
}
.tab-pane.active {
  display: block;
}

.form-row {
  margin-bottom: 20px;
  -webkit-box-align: baseline !important;
  -webkit-align-items: baseline !important;
     -moz-box-align: baseline !important;
          align-items: baseline !important;
}
.form-row label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0f2a44;
}

.alert-danger {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-top: 5px;
  border-radius: 4px;
}

.form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  padding: 20px;
  background: #f1f5f9;
  border-top: 1px solid #dce5ee;
}

.checkbox-field {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  margin-bottom: 15px;
}

.checkbox-list {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #dce5ee;
  padding: 20px;
  border-radius: 6px;
  background: #f1f5f9;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.has-errors input, .form-row.has-errors textarea, .form-row.has-errors select {
  border-color: #dc3545 !important;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
          box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
.form-row.has-errors label {
  color: #dc3545;
}

.tab-button.has-errors {
  background-color: #f8d7da !important;
  border-color: #dc3545 !important;
  color: #721c24 !important;
}
.tab-button.has-errors:hover {
  background-color: #f1b0b7 !important;
}
.tab-button.has-errors.active {
  background-color: #dc3545 !important;
  color: white !important;
}

@media (max-width: 799px) {
  .language-limits-page .problem-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .language-limits-page .problem-page-container {
    padding: 15px;
  }
}
@media (max-width: 799px) {
  .language-templates-page .problem-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .language-templates-page .problem-page-container {
    padding: 15px;
  }
}
@media (max-width: 799px) {
  .translations-page .problem-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .translations-page .problem-page-container {
    padding: 15px;
  }
}
.suggestion-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}
.suggestion-modal.show {
  display: block !important;
}
.suggestion-modal .suggestion-modal-content {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 20px;
  border: 1px solid #8aa5c0;
  width: 500px;
  max-width: 90%;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
}
.suggestion-modal .suggestion-modal-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}
.suggestion-modal .suggestion-modal-header h3 {
  margin: 0;
  color: #0f2a44;
}
.suggestion-modal .close {
  color: #8aa5c0;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.suggestion-modal .close:hover, .suggestion-modal .close:focus {
  color: black;
}
.suggestion-modal .form-group {
  margin-bottom: 15px;
}
.suggestion-modal .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #0f2a44;
}
.suggestion-modal .form-group input,
.suggestion-modal .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  font-size: 14px;
}
.suggestion-modal .form-group input:focus,
.suggestion-modal .form-group select:focus {
  outline: none;
  border-color: #2f5680;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
          box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.suggestion-modal .alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #17a2b8;
}
.suggestion-modal .suggestion-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.suggestion-modal .predicted-badge {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 5px;
}

.help-section {
  margin-bottom: 1em;
  padding: 10px;
  background-color: #f1f5f9;
  border-left: 4px solid #2f5680;
  border-radius: 4px;
}
.help-section .fa-info-circle {
  color: #2f5680;
  margin-right: 8px;
}
.help-section a {
  margin-left: 10px;
}
.help-section a .fa-external-link {
  font-size: 0.8em;
}

.solution-codes-page .solution-code-entry {
  border: 1px solid #dce5ee;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.solution-codes-page .solution-code-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
  padding: 10px 12px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  cursor: pointer;
}
.solution-codes-page .solution-code-header:hover {
  background: rgba(15, 42, 68, 0.04);
}
.solution-codes-page .solution-code-header .toggle-icon {
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -moz-transition: transform 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
  font-size: 12px;
  color: #dce5ee;
}
.solution-codes-page .solution-code-header .toggle-icon.open {
  -webkit-transform: rotate(90deg);
     -moz-transform: rotate(90deg);
          transform: rotate(90deg);
}
.solution-codes-page .solution-code-header label {
  font-weight: bold;
  margin: 0;
  min-width: 25px;
}
.solution-codes-page .solution-code-header select {
  padding: 4px 8px;
}
.solution-codes-page .solution-code-header .name-input {
  padding: 4px 8px;
  width: 150px;
}
.solution-codes-page .solution-code-header .run-one-btn {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 13px;
}
.solution-codes-page .solution-code-header .delete-code-btn {
  cursor: pointer;
  color: #dc2626;
  background: none;
  border: none;
  font-size: 16px;
}
.solution-codes-page .solution-code-body {
  display: none;
  padding: 0 12px 12px;
}
.solution-codes-page .solution-code-body.open {
  display: block;
}
.solution-codes-page .solution-code-editor {
  width: 100%;
  height: 200px;
  border: 1px solid #dce5ee;
}
.solution-codes-page .solution-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.solution-codes-page .solution-message {
  margin-bottom: 10px;
  font-weight: bold;
}
.solution-codes-page #solution-results-section {
  margin-bottom: 20px;
}
.solution-codes-page #solution-results-section table {
  width: 100%;
  border-collapse: collapse;
}
.solution-codes-page #solution-results-section th,
.solution-codes-page #solution-results-section td {
  padding: 6px 10px;
  border: 1px solid #dce5ee;
  text-align: left;
}
.solution-codes-page #solution-results-summary {
  margin-bottom: 10px;
}
.solution-codes-page .result-match {
  color: green;
  font-weight: bold;
}
.solution-codes-page .result-mismatch {
  color: #dc2626;
  font-weight: bold;
}
.solution-codes-page .result-pending {
  color: darkorange;
}
.solution-codes-page .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  z-index: 1000;
}
.solution-codes-page .modal-card {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 24px;
  width: 480px;
  max-width: 90vw;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.solution-codes-page .modal-card h3 {
  margin: 0 0 16px;
}
.solution-codes-page .modal-field {
  margin-bottom: 12px;
}
.solution-codes-page .modal-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}
.solution-codes-page .modal-field .checkbox-label {
  font-weight: normal;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  cursor: pointer;
}
.solution-codes-page .modal-field select,
.solution-codes-page .modal-field textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  color: #0f2a44;
  background: #eef2f7;
}
.solution-codes-page .modal-field textarea {
  resize: vertical;
}
.solution-codes-page .modal-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  margin-top: 16px;
}

.problem-log {
  max-width: 900px;
}
.problem-log .log-entries {
  border: 1px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
}
.problem-log .log-entry {
  border-bottom: 1px solid #dce5ee;
}
.problem-log .log-entry:last-child {
  border-bottom: none;
}
.problem-log .log-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  padding: 12px 15px;
  cursor: pointer;
}
.problem-log .log-header:hover {
  background: #eef2f7;
}
.problem-log .log-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 12px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.problem-log .log-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  white-space: nowrap;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.problem-log .log-user .gravatar {
  border-radius: 50%;
}
.problem-log .log-comment {
  color: #0f2a44;
  font-size: 0.9em;
}
.problem-log .log-type {
  font-size: 0.75em;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 500;
}
.problem-log .log-type-solution {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}
.problem-log .log-type-test-data {
  background: rgba(47, 86, 128, 0.15);
  color: #2f5680;
}
.problem-log .log-type-solution-code {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
}
.problem-log .log-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.problem-log .log-time {
  color: #527291;
  font-size: 0.85em;
}
.problem-log .toggle-icon {
  color: #527291;
  font-size: 0.8em;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -moz-transition: transform 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
}
.problem-log .log-changes {
  padding: 0 15px 15px;
}
.problem-log .changes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.problem-log .changes-table th {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 2px solid #dce5ee;
  font-weight: 600;
}
.problem-log .changes-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #dce5ee;
  vertical-align: top;
  word-break: break-word;
  max-width: 300px;
}
.problem-log .change-field {
  font-weight: 500;
  white-space: normal;
  width: 160px;
}
.problem-log .change-diff {
  max-width: 600px;
}
.problem-log .diff-tabs {
  margin-bottom: 4px;
}
.problem-log .diff-tab {
  padding: 2px 10px;
  border: 1px solid #dce5ee;
  background: none;
  cursor: pointer;
  font-size: 0.8em;
  border-radius: 3px;
  margin-right: 2px;
  color: #0f2a44;
}
.problem-log .diff-tab.active {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.problem-log .diff-block {
  margin: 0;
  font-size: 0.85em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.problem-log .diff-add {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}
.problem-log .diff-del {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
.problem-log .diff-hunk {
  color: #527291;
}
.problem-log .diff-ctx {
  color: #0f2a44;
}
.problem-log .change-old {
  color: #dc2626;
  white-space: pre-line;
  line-height: 1.5;
}
.problem-log .change-new {
  color: #16a34a;
  white-space: pre-line;
  line-height: 1.5;
}
.problem-log .no-logs {
  text-align: center;
  padding: 40px;
  color: #527291;
  font-style: italic;
}

.form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.form-actions .form-actions-status {
  padding: 0.35em 0.75em;
  font-size: 0.95em;
}
.form-actions .form-actions-status.alert {
  margin: 0;
}
.form-actions .review-verdict-pill {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #dce5ee;
  background: #eef2f7;
  color: #0f2a44;
  font-weight: 500;
}
.form-actions .review-verdict-pill b {
  font-weight: 700;
}
.form-actions .review-verdict-pill:hover {
  border-color: #0f2a44;
  text-decoration: none;
}
.form-actions .review-verdict-pill .review-verdict-arrow {
  margin-left: 0.3em;
  font-size: 0.85em;
  opacity: 0.6;
}

.review-dashboard .review-empty {
  text-align: center;
  padding: 3em 1em;
  color: #0f2a44;
  opacity: 0.7;
  font-style: italic;
}
.review-dashboard .review-empty i {
  font-size: 3em;
  display: block;
  margin-bottom: 0.5em;
  opacity: 0.5;
}
.review-dashboard .review-card {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  padding: 1em 1.25em;
  margin-bottom: 1em;
}
.review-dashboard .review-header-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5em;
}
.review-dashboard .review-header-status {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75em;
}
.review-dashboard .review-header-runid {
  font-weight: 600;
  font-size: 1.05em;
}
.review-dashboard .review-header-meta {
  opacity: 0.75;
  font-size: 0.9em;
}
.review-dashboard .review-header-history {
  margin-left: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4em;
  font-size: 0.9em;
}
.review-dashboard .review-header-history .review-history-label {
  opacity: 0.75;
}
.review-dashboard .review-header-history .review-history-select {
  padding: 0.25em 0.5em;
  border-radius: 4px;
  border: 1px solid #dce5ee;
  background: #eef2f7;
  color: #0f2a44;
}
.review-dashboard .review-superseded-banner {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
}
.review-dashboard .review-superseded-banner i {
  opacity: 0.7;
}
.review-dashboard .check-details {
  margin-top: 0.5em;
  font-size: 0.85em;
}
.review-dashboard .check-details summary {
  cursor: pointer;
  opacity: 0.75;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.review-dashboard .check-details .check-details-json {
  margin: 0.5em 0 0;
  padding: 0.5em 0.75em;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
}
.review-dashboard .review-status-badge {
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85em;
  border: 1px solid currentColor;
  display: inline-block;
  line-height: 1.4;
}
.review-dashboard .review-verdict-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75em;
}
.review-dashboard .review-verdict-icon {
  font-size: 1.75em;
  line-height: 1;
}
.review-dashboard .review-verdict-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  font-size: 1.05em;
}
.review-dashboard .review-verdict-text strong {
  font-size: 1.05em;
}
.review-dashboard .review-verdict-counts {
  opacity: 0.7;
  font-size: 0.9em;
  margin-left: 0.4em;
}
.review-dashboard .review-section-title {
  margin: 0 0 0.75em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #dce5ee;
  font-size: 1.1em;
}
.review-dashboard .review-section-title i {
  margin-right: 0.4em;
  opacity: 0.7;
}
.review-dashboard .review-checks-table {
  width: 100%;
  border-collapse: collapse;
}
.review-dashboard .review-checks-table th, .review-dashboard .review-checks-table td {
  padding: 0.6em 0.5em;
  text-align: left;
  border-bottom: 1px solid #dce5ee;
  vertical-align: top;
}
.review-dashboard .review-checks-table thead th {
  font-weight: 600;
  font-size: 0.9em;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-width: 2px;
}
.review-dashboard .review-checks-table tbody tr:last-child td {
  border-bottom: none;
}
.review-dashboard .review-checks-table .check-col-icon {
  width: 2em;
  text-align: center;
  font-size: 1.1em;
}
.review-dashboard .review-checks-table .check-col-status {
  width: 6em;
  white-space: nowrap;
}
.review-dashboard .review-checks-table .check-col-name {
  width: 14em;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.92em;
  font-weight: 500;
}
.review-dashboard .review-checks-table .check-col-reason {
  line-height: 1.45;
}
.review-dashboard .review-checks-table tr.check-fail .check-col-reason,
.review-dashboard .review-checks-table tr.check-error .check-col-reason {
  font-weight: 500;
}
.review-dashboard .review-checks-table tr.check-skipped,
.review-dashboard .review-checks-table tr.check-pending {
  opacity: 0.7;
}
.review-dashboard .review-summary-body {
  line-height: 1.6;
}
.review-dashboard .review-summary-body p {
  margin: 0.5em 0;
}
.review-dashboard .review-summary-body ul, .review-dashboard .review-summary-body ol {
  padding-left: 1.5em;
}
.review-dashboard .review-summary-body strong {
  font-weight: 600;
}
.review-dashboard .review-summary-body code {
  background: #dce5ee;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.92em;
}
.review-dashboard .review-summary-body pre {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  padding: 0.75em;
  border-radius: 4px;
  overflow-x: auto;
}
.review-dashboard .review-summary-placeholder {
  color: #0f2a44;
  opacity: 0.7;
  font-style: italic;
  padding: 0.5em 0;
}
.review-dashboard .review-summary-placeholder i {
  margin-right: 0.4em;
  opacity: 0.8;
}
.review-dashboard .review-decision-badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  border-radius: 0.8em;
  font-size: 0.6em;
  vertical-align: middle;
  border: 1px solid #dce5ee;
}
.review-dashboard .review-decision-card .review-decision-note {
  font-size: 0.9em;
  margin-bottom: 0.75em;
  color: #527291;
}
.review-dashboard .review-decision-card .review-decision-current {
  margin-bottom: 0.75em;
}
.review-dashboard .review-decision-card .review-decision-feedback {
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  margin-bottom: 0.75em;
}
.review-dashboard .review-decision-card .review-decision-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.75em;
}

.problem-attachments-page table#attachment-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.problem-attachments-page table#attachment-list th, .problem-attachments-page table#attachment-list td {
  padding: 0.5em;
  border-bottom: 1px solid #dce5ee;
  text-align: left;
}
.problem-attachments-page table#attachment-list .drag-handle {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
  width: 2em;
  color: #0f2a44;
}
.problem-attachments-page table#attachment-list .delete-btn {
  color: #dc2626;
  background: transparent;
  border: 1px solid #dc2626;
  padding: 0.2em 0.5em;
  cursor: pointer;
}
.problem-attachments-page table#attachment-list .filename-input {
  width: 80%;
  background: #eef2f7;
  color: #0f2a44;
  border: 1px solid #193b5c;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}
.problem-attachments-page table#attachment-list .rename-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #0f2a44;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.1em 0.4em;
  margin-left: 0.3em;
}
.problem-attachments-page table#attachment-list .rename-btn:hover {
  opacity: 1;
  border-color: #dce5ee;
}
.problem-attachments-page table#attachment-list .description-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2em 0.4em;
  color: #0f2a44;
  border-radius: 3px;
  -webkit-transition: border-color 0.15s, background 0.4s;
  -moz-transition: border-color 0.15s, background 0.4s;
  transition: border-color 0.15s, background 0.4s;
}
.problem-attachments-page table#attachment-list .description-input:hover {
  border-color: #dce5ee;
}
.problem-attachments-page table#attachment-list .description-input:focus {
  border-color: #193b5c;
  outline: none;
  background: #eef2f7;
}
.problem-attachments-page table#attachment-list .description-input.is-saved {
  border-color: #193b5c;
  background: #eef2f7;
}
.problem-attachments-page table#attachment-list .description-input.is-error {
  border-color: #dc2626;
}
.problem-attachments-page #attachment-upload-form {
  background: #eef2f7;
  padding: 0.75em 1em;
  border-radius: 4px;
}
.problem-attachments-page #attachment-upload-form .upload-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.75em;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.problem-attachments-page #attachment-upload-form label {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.3em;
  margin: 0;
}
.problem-attachments-page #attachment-upload-form .upload-description {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 14em;
     -moz-box-flex: 1;
          flex: 1 1 14em;
}
.problem-attachments-page #attachment-upload-form .upload-description input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 8em;
}
.problem-attachments-page #attachment-upload-form input[type=text] {
  padding: 0.3em 0.5em;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  color: #0f2a44;
}
.problem-attachments-page #attachment-upload-form .upload-footer {
  margin-top: 0.6em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 1em;
}
.problem-attachments-page #attachment-upload-form .attachment-limits {
  font-size: 0.85em;
  color: #0f2a44;
  opacity: 0.7;
}

.problem-attachments-list {
  margin-top: 1.5em;
}
.problem-attachments-list h3 {
  margin-bottom: 0.5em;
}
.problem-attachments-list ul {
  list-style: none;
  padding-left: 1.5em;
}

.admin a, .admin {
  color: #0f2a44 !important;
  font-weight: bold !important;
}

svg.rate-box {
  width: 1.2em;
}
svg.rate-box circle {
  fill: none;
  stroke-width: 2px;
}
svg.rate-box.rate-none {
  visibility: hidden;
}
svg.rate-box.rate-newbie circle {
  stroke: #6b7280;
}
svg.rate-box.rate-newbie path {
  fill: #6b7280;
}
svg.rate-box.rate-amateur circle {
  stroke: #047857;
}
svg.rate-box.rate-amateur path {
  fill: #047857;
}
svg.rate-box.rate-specialist circle {
  stroke: #0e7490;
}
svg.rate-box.rate-specialist path {
  fill: #0e7490;
}
svg.rate-box.rate-expert circle {
  stroke: #1d4ed8;
}
svg.rate-box.rate-expert path {
  fill: #1d4ed8;
}
svg.rate-box.rate-candidate-master circle {
  stroke: #a21caf;
}
svg.rate-box.rate-candidate-master path {
  fill: #a21caf;
}
svg.rate-box.rate-master circle {
  stroke: #a16207;
}
svg.rate-box.rate-master path {
  fill: #a16207;
}
svg.rate-box.rate-grandmaster circle, svg.rate-box.rate-target circle {
  stroke: #be123c;
}
svg.rate-box.rate-grandmaster path, svg.rate-box.rate-target path {
  fill: #be123c;
}
svg.rate-box.rate-target circle:last-child {
  stroke: none;
  fill: #be123c;
}

.rating {
  font-weight: bold;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

.rate-none, .rate-none a {
  color: #0f2a44;
  font-weight: normal;
}

.rate-newbie, .rate-newbie a {
  color: #6b7280;
}

.rate-amateur, .rate-amateur a {
  color: #047857;
}

.rate-specialist, .rate-specialist a {
  color: #0e7490;
}

.rate-expert, .rate-expert a {
  color: #1d4ed8;
}

.rate-candidate-master, .rate-candidate-master a {
  color: #a21caf;
}

.rate-master, .rate-master a {
  color: #a16207;
}

.rate-grandmaster, .rate-grandmaster a, .rate-target, .rate-target a {
  color: #be123c;
}

.rate-group {
  white-space: nowrap;
  display: inline-block;
  color: #0f2a44;
}
.rate-group .rating {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.rate-group .rate-box {
  margin-right: 0.2em;
  vertical-align: bottom;
}

@media (min-width: 400px) {
  #content-right.users {
    padding-left: 1.5em;
  }
}
#content-right.users {
  -webkit-box-flex: 40%;
  -webkit-flex: 40%;
     -moz-box-flex: 40%;
          flex: 40%;
  max-width: 17em;
}

#content-left.users {
  -webkit-box-flex: 60%;
  -webkit-flex: 60%;
     -moz-box-flex: 60%;
          flex: 60%;
}

td.user-name {
  text-align: left;
}

th.header.rank {
  padding-left: 5px;
}

.user-with-img {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  gap: 0.5em;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.user-with-img .user-img {
  height: 2em;
  width: 2em;
}

.user-table-fullname {
  font-weight: 600;
}

#search-handle {
  width: 100%;
  height: 2.3em;
}

.user-search-image {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 4px;
}

.user-search-name {
  vertical-align: middle;
  padding-left: 0.5em;
}

#users-table {
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}
#users-table thead th {
  background: #f1f5f9;
  color: #2f5680;
  border-bottom: 1px solid #b6c7da;
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  color: #2f5680;
}
#users-table thead th a, #users-table thead th a:link, #users-table thead th a:visited {
  color: #2f5680;
  text-decoration: none;
}
#users-table thead th a:hover {
  color: #1b7f84;
}
#users-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #dce5ee;
  vertical-align: middle;
}
#users-table .user-rating-badge {
  margin-left: 0.5em;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  vertical-align: middle;
}
#users-table .rank-td,
#users-table .user-points,
#users-table .user-problem-count,
#users-table .user-contribution {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
}
#users-table .user-points {
  font-weight: 600;
  color: #0f2a44;
}
#users-table .rank-td {
  color: #527291;
}
#users-table tbody tr {
  background: #fff;
  -webkit-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
#users-table tbody tr:hover {
  background: #e5f7f9;
}
#users-table tbody tr.highlight, #users-table tbody tr:target {
  background: #e5f7f9 !important;
}
#users-table tbody tr.highlight td:first-child, #users-table tbody tr:target td:first-child {
  -webkit-box-shadow: inset 3px 0 0 0 #2bb8be;
          box-shadow: inset 3px 0 0 0 #2bb8be;
}
#users-table.no-border tbody tr:last-child td {
  border-bottom: none;
}
#users-table .about-column {
  width: 30%;
}
#users-table .rank, #users-table .points, #users-table .problems {
  white-space: nowrap;
  max-width: 20em;
  overflow: hidden;
}
#users-table .about-td {
  max-height: 3.5em;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  overflow-wrap: anywhere;
  padding: 0.3em 0.5em;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #14314c;
}
#users-table .about-td .content-description {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
#users-table .about-td .content-description p {
  margin: 0;
}
#users-table .about-td .content-description h1, #users-table .about-td .content-description h2, #users-table .about-td .content-description h3, #users-table .about-td .content-description h4, #users-table .about-td .content-description h5, #users-table .about-td .content-description h6 {
  font-size: 1em;
  margin: 0;
  font-weight: 600;
}
#users-table .about-td .content-description ul, #users-table .about-td .content-description ol {
  margin: 0;
  padding-left: 1.2em;
}
#users-table .about-td .content-description img {
  max-height: 2em;
  vertical-align: middle;
}
#users-table .organization-column a {
  color: #527291 !important;
  font-weight: 500;
}
#users-table .disqualified {
  background-color: #ffa8a8 !important;
}
#users-table .frozen {
  background: lightskyblue !important;
}
#users-table .full-score, #users-table .full-score a {
  font-weight: bold;
  color: green;
}
#users-table .partial-score, #users-table .partial-score a {
  color: green;
}
#users-table .failed-score, #users-table .failed-score a {
  font-weight: bold;
  color: red;
}
#users-table .pretest-full-score, #users-table .pretest-full-score a {
  font-weight: bold;
  color: #2f5680;
}
#users-table .pretest-partial-score, #users-table .pretest-partial-score a {
  color: #2f5680;
}
#users-table .pretest-failed-score, #users-table .pretest-failed-score a {
  font-weight: bold;
  color: red;
}
#users-table .user-points {
  font-weight: 700;
  font-size: 0.9rem;
}
#users-table .solving-time {
  color: #527291;
  font-weight: normal;
  font-size: 0.7rem;
}
#users-table .point-denominator {
  border-top: 1px solid #dce5ee;
  font-size: 0.7em;
}
#users-table .fullname-column {
  text-align: right !important;
  border-right: none !important;
}
#users-table .fullname-column span {
  color: #527291 !important;
  font-weight: 500;
}
#users-table .rank-td {
  font-weight: 600;
  width: 2.5em;
  text-align: center;
  font-size: 0.85rem;
}

#search-form {
  display: inline-block;
  vertical-align: top;
  width: 225px;
  float: right;
  margin-top: 1em;
}
#search-form .select2-selection__arrow {
  display: none;
}
#search-form .select2-selection__rendered {
  cursor: text;
}
#search-form .select2-results__option {
  position: relative;
}
#search-form .select2-results__option--highlighted {
  background-color: #DEDEDE !important;
}
#search-form li.select2-results__option--highlighted a.user-redirect {
  display: inline-block;
}

a.user-redirect {
  color: #2f5680;
  vertical-align: middle;
  font-size: 1.2em;
  position: absolute;
  right: 0.8em;
  display: none;
}
a.user-redirect:hover {
  text-shadow: 0 0 2px blue;
}

a.edit-profile {
  float: right;
  padding-top: 1em;
}

.user-problem-group h3 {
  font-weight: 600;
  font-size: 1.25em;
  margin-bottom: -10px;
  max-height: 20%;
  line-height: 2.5em;
}
.user-problem-group ul {
  -webkit-columns: 300px 4;
  -moz-columns: 300px 4;
  columns: 300px 4;
  list-style-type: none;
  margin-top: 0;
  margin-left: -20px;
  margin-bottom: 0;
}
.user-problem-group a img {
  max-width: 1em;
  margin-right: 3px;
  padding-bottom: 1px;
  vertical-align: middle;
}

.user-info-cell {
  padding-left: 15px;
  border-left: 1px solid #dce5ee;
}

.contest-history-cell {
  border-left: 1px solid #dce5ee;
  padding: 0 0.5em;
}

.hide-solved-problems {
  text-align: right;
  overflow: hidden;
}

.hide-solved-problems > span {
  position: relative;
  display: inline-block;
}

.hide-solved-problems > span:before {
  content: "";
  position: absolute;
  top: 50%;
  width: 100000px;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  right: 100%;
  margin-right: 5px;
}

.user-info-page {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  max-width: 100%;
  min-height: 0;
}

.user-sidebar {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 150px;
     -moz-box-flex: 0;
          flex: 0 0 150px;
  padding-right: 1em;
}
.user-sidebar .user-profile-img {
  width: 145px;
  height: 145px;
}

.user-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1;
     -moz-box-flex: 1;
          flex: 1 1;
  overflow: hidden;
  word-wrap: break-word;
}

.user-img {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background-color: #dce5ee;
  border-radius: 50%;
  object-fit: cover;
}

@media not all and (min-width: 600px) {
  .user-info-page {
    display: block;
  }
  .user-sidebar {
    width: 150px;
    margin: 0 auto;
  }
  .user-content {
    overflow: visible;
  }
}
.pp-table .pp {
  font-weight: 600;
  font-size: 1.4em;
}
.pp-table .pp-scaled {
  font-size: 0.8em;
}
.pp-table .pp-weighted {
  color: #777;
}
.pp-table div.sub-pp {
  text-align: right;
  min-width: unset;
  width: unset;
  border-left: none;
}
.pp-table td.problem-name {
  text-align: left;
  padding-left: 1em;
}
.pp-table td.problem-score {
  width: 80px;
}
.pp-table td.problem-category {
  width: 100px;
}
.pp-table {
  width: 99%;
}

#pp-load-link-wrapper {
  text-align: center;
  border: 1px solid #dce5ee;
}

#pp-load-more-link {
  display: block;
  padding: 0.5em 0;
}

.pp-breakdown-header {
  font-weight: 600;
  font-size: 1.25em;
  margin-bottom: 0.2em;
}

#rating-chart {
  height: 400px;
  margin-top: 1em;
}

#rating-tooltip {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px;
  border-radius: 3px;
  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.1s ease;
  transition: all 0.1s ease;
  pointer-events: none;
  -webkit-transform: translate(-50%, 0);
     -moz-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
}
#rating-tooltip.rate-group {
  color: white;
}

.follow {
  background: #193b5c;
  border-color: transparent;
}
.follow:hover {
  background: #14314c;
}

.unfollow {
  background: #fff;
  border-color: #dce5ee;
  color: #193b5c;
}
.unfollow:hover {
  background: #fdecec;
  border-color: #dc2626;
  color: #b91c1c;
}

#submission-activity #submission-activity-actions {
  text-align: center;
}
#submission-activity #submission-activity-actions #prev-year-action, #submission-activity #submission-activity-actions #next-year-action {
  font-size: 1.75em;
}
#submission-activity #submission-activity-actions #year {
  font-size: 1.25em;
  color: #193b5c;
}
#submission-activity #submission-activity-display {
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
#submission-activity #submission-activity-display .info-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
}
#submission-activity #submission-activity-display .info-bar .info-table {
  width: 15%;
  min-width: 130px;
}
#submission-activity #submission-activity-display .info-bar .info-table .info-table-text {
  width: 8%;
}
#submission-activity #submission-activity-display .info-text {
  font-size: 0.75em;
  line-height: 1;
  font-weight: 100;
  color: #193b5c;
}
#submission-activity #submission-activity-display #submission-total-count {
  -webkit-align-self: center;
          align-self: center;
  padding-left: 8%;
  font-size: 0.85em;
}
@media (max-width: 1000px) {
  #submission-activity #submission-activity-display #submission-total-count {
    padding-left: 5px;
  }
}
#submission-activity #submission-activity-display table {
  width: 100%;
  padding: 5px;
}
#submission-activity #submission-activity-display table th.submission-date-col {
  width: 8%;
}
@media (max-width: 1000px) {
  #submission-activity #submission-activity-display table th.submission-date-col {
    display: none;
  }
}
#submission-activity #submission-activity-display table td {
  border-radius: 20%;
}
#submission-activity #submission-activity-display table td div {
  margin-top: 100%;
}
#submission-activity #submission-activity-display table td.activity-label {
  position: relative;
  white-space: nowrap;
}
#submission-activity #submission-activity-display table td.activity-blank {
  background-color: #fff;
}
#submission-activity #submission-activity-display table td.activity-0 {
  background-color: #dce5ee;
}
#submission-activity #submission-activity-display table td.activity-1 {
  background-color: #a8ecef;
}
#submission-activity #submission-activity-display table td.activity-2 {
  background-color: #2bb8be;
}
#submission-activity #submission-activity-display table td.activity-3 {
  background-color: #1b7f84;
}
#submission-activity #submission-activity-display table td.activity-4 {
  background-color: #193b5c;
}

.user-profile-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 1.5rem;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.user-stat-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.user-stat-card:hover {
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
  border-color: #b6c7da;
  -webkit-transform: translateY(-2px);
     -moz-transform: translateY(-2px);
          transform: translateY(-2px);
}
.user-stat-card .stat-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #2f5680;
  font-size: 1.1rem;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.user-stat-card .stat-icon.green, .user-stat-card .stat-icon.darkcyan, .user-stat-card .stat-icon.peru, .user-stat-card .stat-icon.blue {
  background: #f1f5f9;
}
.user-stat-card .stat-icon i {
  color: inherit;
}
.user-stat-card .stat-content {
  min-width: 0;
}
.user-stat-card .stat-value {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}
.user-stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-fullname {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: #0f2a44;
}

.user-about-section .admin-notes {
  background: #fef6e7;
  border: 1px solid #fcd9a0;
  color: #92400e;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.user-about-section .admin-notes i {
  color: #d97706;
}
.user-about-section .about-content {
  background: #eef2f7;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.user-about-section .no-about-text {
  color: #8aa5c0;
  font-style: italic;
  padding: 1rem;
  text-align: center;
  background: #eef2f7;
  border-radius: 10px;
}
.user-about-section .no-about-text i {
  margin-right: 0.5rem;
}

.user-section .section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f2a44;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.user-section .section-title i {
  color: #193b5c;
  font-size: 0.9rem;
}

.awards-section .awards-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.75rem;
}
.awards-section .award-item {
  display: inline-block;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -moz-transition: transform 0.2s ease, -moz-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease, -moz-transform 0.2s ease;
}
.awards-section .award-item:hover {
  -webkit-transform: scale(1.05);
     -moz-transform: scale(1.05);
          transform: scale(1.05);
}
.awards-section .award-item img {
  height: 80px;
  width: auto;
}

.activity-section #submission-activity-display {
  border-radius: 10px;
}

.rating-section #rating-chart {
  margin-top: 0;
  border-radius: 10px;
  overflow: hidden;
}

.user-sidebar .sidebar-avatar-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}
.user-sidebar .user-profile-img {
  width: 145px;
  height: 145px;
  border: 3px solid white;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.user-sidebar .sidebar-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.user-sidebar .sidebar-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.user-sidebar .sidebar-btn.follow {
  background: #193b5c;
  color: #fff;
}
.user-sidebar .sidebar-btn.follow:hover {
  background: #14314c;
}
.user-sidebar .sidebar-btn.unfollow {
  background: #fff;
  border: 1px solid #dce5ee;
  color: #193b5c;
}
.user-sidebar .sidebar-btn.unfollow:hover {
  background: #fdecec;
  border-color: #dc2626;
  color: #b91c1c;
}
.user-sidebar .sidebar-btn.message {
  background: #fff;
  border: 1px solid #dce5ee;
  color: #193b5c;
}
.user-sidebar .sidebar-btn.message:hover {
  background: #f1f5f9;
  border-color: #b6c7da;
  color: #193b5c;
}
.user-sidebar .sidebar-contest-stats {
  background: #eef2f7;
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 1rem;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.4rem 0;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row:not(:last-child) {
  border-bottom: 1px solid #dce5ee;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row .stat-label {
  font-size: 0.8rem;
  color: #527291;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row .stat-value {
  font-weight: 600;
  font-size: 0.85rem;
}

.profile-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  -webkit-transition: -webkit-box-shadow 0.3s;
  transition: -webkit-box-shadow 0.3s;
  -moz-transition: box-shadow 0.3s;
  transition: box-shadow 0.3s;
  transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
}
.profile-card:hover {
  -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
          box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.profile-card .card-header {
  background-color: #f7f7f7;
  text-align: center;
  padding: 10px;
}
.profile-card .user-img {
  width: 80px;
  height: 80px;
}
.profile-card .card-body {
  padding: 20px;
  padding-bottom: 5px;
}
.profile-card .user-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  margin-bottom: 10px;
}
.profile-card .user-info-body {
  font-weight: bold;
}
.profile-card {
  /* Medals Container */
}
.profile-card .medals-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 10px;
  padding-top: 0px;
  gap: 5px;
}
.profile-card {
  /* Medal Item */
}
.profile-card .medal-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  text-align: center;
}
.profile-card .medal-item img {
  width: 70px; /* Adjust size based on your actual image size */
  height: auto;
}
.profile-card .medal-count {
  background-color: hsla(30, 4%, 91%, 0.7);
  border-radius: 50%;
  bottom: 0.5rem;
  color: black;
  font-size: 1em;
  line-height: 1;
  padding: 0.8em 0;
  right: 0.5rem;
  text-align: center;
  width: 2.5em;
}

.content-description {
  line-height: 1.7em;
  font-size: 16px;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}
.content-description h1, .content-description h2, .content-description h3, .content-description h4, .content-description h5, .content-description .admonition-title, .content-description summary {
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}
.content-description img {
  max-width: 100%;
  height: auto;
}
.content-description pre, .content-description code, .content-description kbd, .content-description samp, .content-description span.code {
  page-break-inside: avoid;
}
.content-description .linenos pre {
  padding-right: 0;
}
.content-description b, .content-description strong {
  font-weight: bold;
}
.content-description dfn {
  font-style: italic;
}
.content-description ins {
  background: #ff9;
  color: #000;
  text-decoration: none;
}
.content-description mark {
  background: #ff0;
  color: #000;
  font-style: italic;
  font-weight: bold;
}
.content-description sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
.content-description sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}
.content-description sub {
  bottom: -0.25em;
}
.content-description ul, .content-description ol {
  padding: 0 0 0 2em !important;
}
.content-description li p:last-child {
  margin: 0;
}
.content-description dd {
  margin: 0 0 0 2em;
}
.content-description img {
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: middle;
}
.content-description td {
  vertical-align: top;
}

.display-math {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.content-description .highlighttable, .content-description .codehilitetable {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 1.5em 0 !important;
  border-radius: 8px;
  overflow: hidden;
  background: transparent !important;
}
.content-description .highlighttable pre, .content-description .codehilitetable pre {
  padding: 0.5em;
  padding-right: 0;
  margin: 0 !important;
  background-color: var(--md-code-bg-color, #2f3129);
  color: var(--md-code-fg-color, #f8f8f2);
  border: none !important;
  border-radius: 0 !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.content-description .highlighttable .linenos, .content-description .codehilitetable .linenos {
  width: auto;
  min-width: 3em;
  vertical-align: top !important;
}
.content-description .highlighttable .linenos pre, .content-description .codehilitetable .linenos pre {
  color: rgba(255, 255, 255, 0.4) !important;
  background-color: rgba(0, 0, 0, 0.15) !important;
  width: 100%;
  border: none !important;
  border-right: 1px solid var(--md-code-border-color, #193b5c) !important;
  text-align: right !important;
  padding-right: 0.8em !important;
  padding-left: 0.5em !important;
}
.content-description .highlighttable .linenos pre span, .content-description .codehilitetable .linenos pre span {
  margin: 0 !important;
}
.content-description .highlighttable .code, .content-description .codehilitetable .code {
  width: 100%;
  vertical-align: top !important;
}
.content-description .highlighttable .code pre, .content-description .codehilitetable .code pre {
  padding-left: 1em !important;
  border: none !important;
  width: 100%;
}
.content-description .highlighttable .filename, .content-description .codehilitetable .filename {
  background: var(--md-filename-bg-color, black);
  color: var(--md-filename-fg-color, #cccccc);
  padding: 0.8em 1.2em;
  font-weight: 500;
  font-family: inherit;
  border-bottom: 2px solid var(--md-code-border-color, #193b5c);
}
.content-description .highlighttable td, .content-description .codehilitetable td, .content-description .highlighttable th, .content-description .codehilitetable th {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: left !important;
  vertical-align: top !important;
}

textarea,
pre {
  -moz-tab-size: 4;
  tab-size: 4;
}

@media (min-width: 800px) {
  .content-description pre:has(code) {
    min-width: 3em;
  }
  #common-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: row-reverse;
       -moz-box-orient: horizontal;
       -moz-box-direction: reverse;
            flex-direction: row-reverse;
  }
  #content-left {
    -webkit-box-flex: 86%;
    -webkit-flex: 86%;
       -moz-box-flex: 86%;
            flex: 86%;
    width: 100%;
  }
  #content-left.split-common-content {
    width: 70%;
  }
  #content-left .content-description {
    width: 100%;
  }
  #content-right {
    -webkit-box-flex: 14%;
    -webkit-flex: 14%;
       -moz-box-flex: 14%;
            flex: 14%;
    max-width: 12.5em;
    min-width: 8em;
    padding-left: 1.5em;
    padding-top: 1em;
  }
  #content-right .info-float {
    float: none;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    width: 100%;
    max-height: -moz-calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  #content-right .info-float::-webkit-scrollbar {
    width: 4px;
  }
  #content-right .info-float::-webkit-scrollbar-track {
    background: transparent;
  }
  #content-right .info-float::-webkit-scrollbar-thumb {
    background: #dce5ee;
    border-radius: 2px;
  }
  #content-right .info-float::-webkit-scrollbar-thumb:hover {
    background: #8aa5c0;
  }
}
@media not all and (min-width: 800px) {
  #content-right .info-float {
    float: none;
    width: 100% !important;
    position: static !important;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
  }
}
@media (max-width: 799px) {
  .content-description {
    font-size: 16px;
    line-height: 1.7em;
  }
}
a.view-pdf {
  padding-top: 0.6em;
  display: inline-block;
}

.problem-title {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.problem-title .spacer {
  display: inline-block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 1px;
     -moz-box-flex: 1;
          flex: 1 1 1px;
}

.info-float .fa {
  color: #000;
  padding-right: 0.2em;
}

details summary {
  cursor: pointer;
}

/**
 * Sortable Formset Widget Styles
 */
.sortable-formset {
  margin-bottom: 1.5em;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.sortable-formset .sortable-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 6px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.sortable-formset .sortable-table th, .sortable-formset .sortable-table td {
  padding: 0.6em 0.75em;
  vertical-align: middle;
}
.sortable-formset .sortable-table thead th {
  background-color: #193b5c;
  color: white;
  border-bottom: none;
  font-weight: 600;
}
.sortable-formset .sortable-table tbody tr {
  border-bottom: 1px solid #dce5ee;
  background-color: white;
}
.sortable-formset .sortable-table tbody tr:hover {
  background-color: rgba(25, 59, 92, 0.05);
}
.sortable-formset .sortable-table tbody tr:last-child {
  border-bottom: none;
}
.sortable-formset .sortable-drag-header,
.sortable-formset .sortable-drag-cell {
  width: 50px;
  text-align: center;
}
.sortable-formset .drag-handle {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
  color: #8aa5c0;
  padding: 0.25em 0.5em;
  display: inline-block;
}
.sortable-formset .drag-handle:hover {
  color: #0f2a44;
}
.sortable-formset .drag-handle:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}
.sortable-formset .row-number {
  display: inline-block;
  min-width: 1.5em;
  color: #527291;
  font-weight: 500;
}
.sortable-formset .sortable-delete-header,
.sortable-formset .sortable-delete-cell {
  width: 60px;
  text-align: center;
}
.sortable-formset .sortable-placeholder {
  height: 45px;
  background-color: rgba(25, 59, 92, 0.1);
  border: 2px dashed #193b5c;
}
.sortable-formset .ui-sortable-helper {
  background-color: white;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.sortable-formset .ui-sortable-helper .drag-handle {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
  color: #193b5c;
}
.sortable-formset .sortable-template,
.sortable-formset .sortable-deleted {
  display: none !important;
}
.sortable-formset .sortable-actions {
  margin-top: 1em;
}
.sortable-formset .add-row-btn i {
  margin-right: 0.5em;
}
.sortable-formset .field-error {
  font-size: 0.85em;
  margin-top: 0.25em;
}
.sortable-formset input[type=number] {
  width: 5em;
}
.sortable-formset .sortable-col-problem {
  min-width: 200px;
  max-width: 350px;
}

.remove-row-btn {
  background: none;
  border: none;
  border-radius: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  padding: 0.25em 0.5em;
  cursor: pointer;
  opacity: 0.6;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.remove-row-btn:hover {
  opacity: 1;
  background: none;
}
.remove-row-btn i {
  font-size: 1.1em;
  cursor: pointer;
}

.social i {
  display: inline;
  font-size: 1.9em;
}

.facebook-this, .tweet-this, .gplus-this {
  display: inline;
}

.tweet-this i {
  color: #55acee;
}

.facebook-this it {
  color: #133783;
}

.gplus-this i {
  color: #dd4b38;
}

.social {
  font-size: 1.3em;
  float: right;
}

.button {
  -webkit-transition: 0.3s all ease;
  -moz-transition: 0.3s all ease;
  transition: 0.3s all ease;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  background-clip: padding-box;
  background-color: #193b5c;
  border: 1px solid transparent;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 2.6rem;
  padding: -moz-calc(0.7rem - 1px) -moz-calc(1.25rem - 1px);
  padding: calc(0.7rem - 1px) calc(1.25rem - 1px);
  position: relative;
  text-decoration: none;
  -webkit-transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-align: center;
  width: auto;
}
.button.disabled, .button[disabled] {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #8aa5c0), to(#5c7ea0)) repeat-x !important;
  background: -webkit-linear-gradient(top, #8aa5c0 0, #5c7ea0 100%) repeat-x !important;
  background: -moz-linear-gradient(top, #8aa5c0 0, #5c7ea0 100%) repeat-x !important;
  background: linear-gradient(to bottom, #8aa5c0 0, #5c7ea0 100%) repeat-x !important;
  border-color: #5c7ea0 !important;
  cursor: not-allowed;
}
.button.small {
  min-height: auto;
  padding: -moz-calc(0.5rem - 1px) -moz-calc(1rem - 1px);
  padding: calc(0.5rem - 1px) calc(1rem - 1px);
}
.button.btn-gray {
  background: #527291;
}
.button.btn-hovergray:hover {
  background: #f1f5f9;
}
.button.btn-green {
  background: #16a34a;
}
.button.btn-green:hover {
  background: #15803d;
}
.button.btn-darkred {
  background: #991b1b;
}
.button.btn-darkred:hover {
  background: #b91c1c;
}
.button.btn-midnightblue {
  background: #14314c;
}
.button.btn-midnightblue:hover {
  background: #0a1c2e;
}
.button.btn-darkGreen {
  background: #193b5c;
}
.button.btn-outline {
  background: #fff;
  border-color: #b6c7da;
  color: #193b5c !important;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.button.btn-outline:hover {
  background: #e5f7f9;
  border-color: #2bb8be;
  color: #193b5c !important;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.button.btn-outline:active {
  background: #f1f5f9;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.button.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #193b5c !important;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.button.btn-ghost:hover {
  background: #e5f7f9;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.button.unselectable.button.full.small {
  margin: 0 auto;
}

.button:hover {
  background-color: #14314c;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
}

.button:focus {
  background-color: #14314c;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
}

.button:active {
  background-color: #0f2a44;
  -webkit-box-shadow: 0 2px 4px rgba(25, 59, 92, 0.08);
          box-shadow: 0 2px 4px rgba(25, 59, 92, 0.08);
}

.inline-button {
  display: inline;
  vertical-align: top;
  padding: 3px 6px;
}

input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=date] {
  padding: 8px 12px;
  color: #0f2a44;
  background: #fff none;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: border-color 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  -moz-transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 15px;
}
input[type=number] {
  padding: 2px 0 2px 5px;
}

textarea {
  padding: 8px 12px;
  background: #fff none;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: border-color 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  -moz-transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
  transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

textarea:hover {
  border-color: #0f2a44;
}

input[type=text]:hover, input[type=password]:hover, input[type=email]:hover, input[type=number]:hover, input[type=datetime-local]:hover, input[type=date]:hover {
  border-color: #b6c7da;
  -webkit-box-shadow: none;
          box-shadow: none;
}

textarea:focus {
  border-color: #2bb8be;
  border-width: unset;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
  outline: 0;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=number]:focus, input[type=datetime-local]:focus, input[type=date]:focus {
  border-color: #2bb8be;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.35);
  outline: 0;
}

.btn-clipboard {
  top: -5px;
  right: -8px;
  display: block;
  font-size: 12px;
  cursor: pointer;
  position: absolute;
  padding: 5px 8px;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}
.btn-clipboard:hover {
  border-radius: 10px;
  border: 1px solid #dce5ee;
  background-color: #fff;
}

.copy-clipboard {
  position: relative;
}

.ul_tab_a_active, .tabs > ul > li.active > a:focus, .tabs > ul > li.active > span:focus, .tabs > ul > li.active > a:hover, .tabs > ul > li.active > span:hover, .tabs > ul > li.active > a, .tabs > ul > li.active > span {
  color: #193b5c;
  cursor: default;
  font-weight: 600;
  border-bottom: 2px solid #193b5c;
  background: transparent;
}

.tabs {
  margin: 0 0 8px;
  width: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.tabs.tabs-no-flex {
  display: block;
}
.tabs .tab .tab-icon {
  padding-right: 0.3em;
  color: #527291;
}
.tabs .tab a, .tabs .tab span {
  border-top-width: 3px !important;
}
.tabs .tab.active a, .tabs .tab.active span {
  border-top-color: white !important;
}
.tabs .tab.active .tab-icon {
  color: #0f2a44;
}
.tabs h2 {
  color: #0f2a44;
}
.tabs > ul {
  margin: 0;
  padding: 0;
  list-style: outside none none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}
.tabs > ul::-webkit-scrollbar {
  width: 0.1rem;
  background-color: transparent;
}
.tabs > ul::-webkit-scrollbar-thumb {
  background-color: transparent;
}
.tabs > ul > li {
  position: relative;
  display: block;
}
.tabs > ul > li > a, .tabs > ul > li > span {
  margin-right: 15px;
  line-height: 1.42857;
  position: relative;
  display: block;
  padding: 8px 2px;
  color: #527291;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  -webkit-transition: color 0.15s ease, border-color 0.15s ease;
  -moz-transition: color 0.15s ease, border-color 0.15s ease;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tabs > ul > li > a:hover, .tabs > ul > li > span:hover {
  color: #193b5c;
  border-bottom-color: #b6c7da;
}

ul.pagination li:not(.active-page):not(.disabled-page) > a:hover {
  color: #0f2a44;
  background: #f1f5f9;
  border-color: #b6c7da;
}

ul.pagination {
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  padding-left: 0;
  margin: 0;
  border-radius: 10px;
}
ul.pagination > li {
  display: inline;
}
ul.pagination > li > a, ul.pagination > li > span {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  float: left;
  min-width: 34px;
  height: 34px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0 10px;
  margin-right: 4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
  color: #193b5c;
  background-color: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
ul.pagination > .disabled-page > a, ul.pagination > .disabled-page > span {
  color: #8aa5c0;
  background-color: transparent;
  border-color: #f1f5f9;
  cursor: default;
}
ul.pagination > .active-page > a, ul.pagination > .active-page > span {
  z-index: 2;
  color: #fff;
  background-color: #193b5c;
  border-color: #193b5c;
  font-weight: 600;
  cursor: default;
}

@media (max-width: 799px) {
  ul.pagination > li > a, ul.pagination > li > span {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    margin-right: 2px;
    border-width: 1px;
  }
  ul.pagination > li:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-last-child(2)):not(:last-child):not(.active-page):not(.disabled-page) {
    display: none;
  }
  ul.pagination > li.active-page + li:not(.disabled-page) {
    display: inline;
  }
}
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.alert-info {
  color: #0e5c61;
  background-color: #e5f7f9;
  border-color: #a9e4e8;
}

.alert-warning {
  color: #92400e;
  background-color: #fef6e7;
  border-color: #fcd9a0;
}

.alert-danger {
  color: #991b1b;
  background-color: #fdecec;
  border-color: #f7c9c9;
}

.alert-dismissable, .alert-dismissible {
  padding-right: 35px;
}

.alert-dismissable .close, .alert-dismissible .close {
  position: relative;
  top: -2px;
  right: -21px;
  color: inherit;
}

.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #0f2a44;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=20);
  opacity: 0.2;
}

a.close {
  text-decoration: none !important;
  font-size: 18px !important;
  line-height: 1;
}
a.close:hover {
  color: #0f2a44 !important;
}

.close:focus, .close:hover {
  color: #0f2a44;
  text-decoration: none;
  cursor: pointer;
  filter: alpha(opacity=50);
  opacity: 0.5;
}

.badge {
  min-width: 10px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #dc2626;
  border-radius: 12px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.form-submit-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
  padding-top: 12px;
}

ul.select2-selection__rendered {
  padding: 0 5px !important;
}

.sidebox h3 {
  border-radius: 10px 10px 0 0;
  padding: 12px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid #dce5ee;
  color: #0f2a44;
  font-size: 1.05em;
  font-weight: 600;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.sidebox h3 .fa {
  background: #193b5c;
  color: #fff;
  padding: 5px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: smaller;
}

.sidebox-content {
  border-top: none;
  padding: 1px 0.5em 3px;
  background: #fff;
  border-radius: 0 0 10px 10px;
}
.sidebox-content.sidebox-table {
  border: none;
  padding: 0;
}
.sidebox-content.sidebox-table .table {
  margin: 0 !important;
}

.sidebox {
  border: 1px solid #dce5ee;
  border-radius: 10px;
  margin-bottom: 1.5em;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  overflow: hidden;
}

.ws-closed {
  position: -webkit-sticky;
  position: sticky;
  top: 42px;
  background: #dc2626;
  border-radius: 8px 8px 0 0;
  display: none;
}

.ws-closed a {
  display: block;
  padding: 7px 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

.semibold {
  font-weight: 600;
}

.messages {
  list-style-type: none;
  padding: 0;
}
.messages li {
  padding: 1em 1.5em;
  margin-bottom: 1em;
  border: 1px solid transparent;
  border-radius: 8px;
}
.messages li.debug {
  color: #193b5c;
  background-color: #f1f5f9;
  border-color: #dce5ee;
}
.messages li.info {
  color: #0e5c61;
  background-color: #e5f7f9;
  border-color: #a9e4e8;
}
.messages li.success {
  color: #14532d;
  background-color: #e7f6ec;
  border-color: #bce3c9;
}
.messages li.warning {
  color: #92400e;
  background-color: #fef6e7;
  border-color: #fcd9a0;
}
.messages li.error {
  color: #991b1b;
  background-color: #fdecec;
  border-color: #f7c9c9;
}

.spoiler-text {
  border: 1px solid #0f2a44;
  padding: 0.5em;
  margin-top: 0.5em;
  border-radius: 8px;
  background: #e5f7f9;
}

.spoiler-summary {
  padding-left: 0.5em;
  text-decoration: underline;
}

.control-button {
  color: #0f2a44 !important;
  border: 0;
}

ul.errorlist {
  margin: 0;
  text-align: right;
  list-style: none;
  padding: 0;
  color: #dc2626;
  margin-bottom: 3px;
}

.registration-form .sortedm2m-container, .registration-form .sortedm2m-container p.selector-filter {
  width: 300px;
}
.registration-form .sortedm2m-container p.selector-filter input {
  width: 262px;
}
.registration-form ul.sortedm2m {
  width: 284px;
  min-height: 100px;
  max-height: 200px;
}
.registration-form .sortedm2m-container, .registration-form .sortedm2m-container p.selector-filter {
  width: 300px;
}
.registration-form .sortedm2m-container p.selector-filter input {
  width: 262px;
}
.registration-form ul.sortedm2m {
  width: 284px;
  min-height: 70px;
  max-height: 200px;
  height: 70px;
}
.registration-form .inline-header {
  float: left;
  font-size: 1.1em;
  padding: 4px 8px;
  padding-left: 0;
}
.registration-form .block-header {
  color: #193b5c;
  font-size: 1.1em;
  font-weight: 600;
  padding-bottom: 0.2em;
  padding-left: 2px;
  margin-top: 0.75em;
}
.registration-form .fullwidth {
  display: block;
  overflow: hidden;
}
.registration-form .fullwidth input {
  width: 100%;
}
.registration-form .fullwidth-error input {
  width: 100%;
  border-color: #dc2626;
}
.registration-form .form-field-error {
  color: #dc2626;
}
.registration-form small {
  font-size: 0.7em;
  padding-left: 0.6em;
}
.registration-form #edit-form {
  border: unset;
  background: unset;
  max-width: 450px;
  width: 450px;
}
.registration-form .full-textfield {
  padding-top: 0.5em;
}
.registration-form .tos-section {
  display: inline-block;
  padding-right: 1em;
}
.registration-form .pass-req {
  padding: 0;
}

#center-float {
  display: inline-block;
  text-align: initial;
  width: 450px;
}

#content.wrapper:has(.auth-page) {
  background: transparent;
  border: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  padding: 0;
}

.auth-page {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  padding: 40px 16px;
  min-height: 60vh;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
  padding: 24px;
}

.auth-card-head {
  margin-bottom: 24px;
}
.auth-card-head h2 {
  font-size: 1.5em;
  margin-bottom: 6px;
}

.auth-card-wide {
  max-width: 460px;
}

.auth-card #edit-form {
  width: 100%;
  max-width: 100%;
}

.auth-card-sub {
  margin: 0;
  color: #527291;
  font-size: 0.92em;
}

.auth-field-hint {
  font-weight: 400;
  color: #527291;
  font-size: 0.92em;
  margin-left: 6px;
}

a.auth-field-hint:hover {
  color: #1b7f84;
}

.auth-field-aside {
  font-size: 0.85em;
  color: #527291;
}

.auth-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-size: 0.85em;
  font-weight: 600;
  color: #193b5c;
}
.auth-field input[type=text],
.auth-field input[type=password],
.auth-field input[type=email] {
  width: 100%;
}
.auth-field .select2,
.auth-field .select2-container {
  width: 100% !important;
}
.auth-field select {
  width: 100%;
}

.auth-error {
  background: #fdecec;
  border: 1px solid #f7c9c9;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9em;
}

.auth-submit {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.98em;
  font-weight: 600;
  color: #fff;
  background: #193b5c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-submit:hover {
  background: #14314c;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
}
.auth-submit:active {
  background: #0f2a44;
  -webkit-box-shadow: 0 2px 4px rgba(25, 59, 92, 0.08);
          box-shadow: 0 2px 4px rgba(25, 59, 92, 0.08);
}

.auth-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.88em;
}

.auth-divider {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: #527291;
  font-size: 0.82em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  height: 1px;
  background: #dce5ee;
}

.auth-social {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 12px;
}

.auth-social-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  font-size: 1.15em;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-social-btn:hover {
  border-color: #b6c7da;
  background: #f1f5f9;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.auth-social-btn.google-icon i {
  color: #dd4b38;
}
.auth-social-btn.facebook-icon i {
  color: #133783;
}
.auth-social-btn.github-icon i {
  color: #0f2a44;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
  }
}
.btn:hover {
  color: #0f2a44;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-block + .btn-block {
  margin-top: 0.5rem;
}

.d-flex {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -moz-box !important;
  display: flex !important;
}

.justify-content-center {
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
     -moz-box-pack: center !important;
          justify-content: center !important;
}

.align-items-center {
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
     -moz-box-align: center !important;
          align-items: center !important;
}

.align-content-center {
  -webkit-align-content: center !important;
          align-content: center !important;
}

.align-self-center {
  -ms-grid-row-align: center !important;
  -webkit-align-self: center !important;
          align-self: center !important;
}

.link-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 6px;
  font-weight: normal;
  cursor: pointer;
  -webkit-transition: background-color 0.3s;
  -moz-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
.link-row a {
  color: inherit;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  width: 100%;
  text-decoration: none;
}
.link-row a i {
  width: 1.5em;
}
.link-row span {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
}
.link-row:hover {
  color: #193b5c;
  background-color: #f1f5f9;
}

a {
  -webkit-transition: 0.3s all ease;
  -moz-transition: 0.3s all ease;
  transition: 0.3s all ease;
}

button:hover, button:focus {
  text-decoration: none;
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.btn {
  padding: 8px 12px;
  cursor: pointer;
  border-width: 1px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  -webkit-box-shadow: 0 10px 20px -6px rgba(25, 59, 92, 0.12);
  box-shadow: 0 10px 20px -6px rgba(25, 59, 92, 0.12);
  overflow: hidden;
  position: relative;
  -moz-transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn span {
  font-size: 15px;
}
.btn .icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.btn .icon i {
  font-size: 1em;
}
.btn.btn-round {
  border-radius: 999px;
}
.btn:hover, .btn:active, .btn:focus {
  outline: none;
}
.btn.btn-primary {
  color: #fff;
}
.btn.btn-primary .icon i {
  color: inherit;
}
.btn.btn-disabled {
  color: #fff;
  background: #527291;
  border-color: #527291;
}

.setting-button {
  height: 2.3em;
  width: 2.3em;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  cursor: pointer;
  padding-top: 2px;
}

.user-setting-button {
  height: 2.3em;
  width: 2.5em;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  cursor: pointer;
  padding-top: 2px;
}

@media (max-width: 799px) {
  .tabs {
    margin-left: 1em;
    margin-right: 1em;
  }
}
.featherlight.image-widget-lightbox .featherlight-content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  min-width: unset !important;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  -webkit-transform: translate(-50%, -50%) !important;
     -moz-transform: translate(-50%, -50%) !important;
          transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.featherlight.image-widget-lightbox .featherlight-content img {
  display: block;
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  -webkit-box-shadow: 0 20px 48px -12px rgba(10, 28, 46, 0.35);
          box-shadow: 0 20px 48px -12px rgba(10, 28, 46, 0.35);
}
.featherlight.image-widget-lightbox .featherlight-close-icon {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  top: 10px;
  right: 10px;
}

.image-file-widget {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  max-width: 300px;
}
.image-file-widget .current-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.image-file-widget .current-image a {
  display: block;
  line-height: 0;
  position: relative;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}
.image-file-widget .current-image img {
  border-radius: 10px;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  -moz-transition: transform 0.2s, box-shadow 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s, -webkit-box-shadow 0.2s;
}
.image-file-widget .current-image .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.image-file-widget .current-image .image-overlay i {
  color: #fff;
  font-size: 1.5em;
}
.image-file-widget .current-image a:hover img {
  -webkit-transform: scale(1.02);
     -moz-transform: scale(1.02);
          transform: scale(1.02);
  -webkit-box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
          box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
}
.image-file-widget .current-image a:hover .image-overlay {
  opacity: 1;
}
.image-file-widget .image-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.image-file-widget .hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.image-file-widget .change-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: border-color 0.2s, background 0.2s;
  -moz-transition: border-color 0.2s, background 0.2s;
  transition: border-color 0.2s, background 0.2s;
  margin: 0;
}
.image-file-widget .change-image:hover {
  border-color: #193b5c;
  background: #e5f7f9;
}
.image-file-widget .change-image i {
  color: #193b5c;
  font-size: 1.1em;
}
.image-file-widget .change-image span {
  font-weight: 500;
  color: #527291;
}
.image-file-widget .clear-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s;
  -moz-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
  margin: 0;
}
.image-file-widget .clear-image:hover {
  background: #fdecec;
  border-color: #dc2626;
}
.image-file-widget .clear-image:hover i {
  color: #dc2626;
}
.image-file-widget .clear-image input[type=checkbox] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.image-file-widget .clear-image i {
  color: #8aa5c0;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.image-file-widget .clear-image span {
  font-weight: 500;
  color: #527291;
}
.image-file-widget .upload-area {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 2px dashed #dce5ee;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: border-color 0.2s, background 0.2s;
  -moz-transition: border-color 0.2s, background 0.2s;
  transition: border-color 0.2s, background 0.2s;
}
.image-file-widget .upload-area:hover {
  border-color: #193b5c;
  background: #e5f7f9;
}
.image-file-widget .upload-area:hover i {
  color: #193b5c;
}
.image-file-widget .upload-area i {
  font-size: 2.5em;
  color: #8aa5c0;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.image-file-widget .upload-area span {
  font-weight: 500;
  color: #527291;
}

.pdf-file-widget {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
.pdf-file-widget .current-file {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.pdf-file-widget .current-file .pdf-icon {
  color: #dc2626;
  font-size: 1.8em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.pdf-file-widget .current-file a {
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}
.pdf-file-widget .current-file a:hover {
  text-decoration: underline;
}
.pdf-file-widget .file-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 16px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.pdf-file-widget .clear-file {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  transition: background 0.2s;
}
.pdf-file-widget .clear-file:hover {
  background: #fdecec;
  border-color: #dc2626;
}
.pdf-file-widget .clear-file input[type=checkbox] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.pdf-file-widget .clear-file label {
  margin: 0;
  font-weight: 500;
  color: #527291;
  cursor: pointer;
}
.pdf-file-widget .change-file {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
}
.pdf-file-widget .change-file span {
  font-weight: 500;
  color: #527291;
}
.pdf-file-widget .change-file input[type=file] {
  cursor: pointer;
}

.direct-upload-widget {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  max-width: 300px;
}
.direct-upload-widget .current-preview {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.direct-upload-widget .current-preview:has(img) {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.direct-upload-widget .current-preview:has(img) a {
  display: block;
  line-height: 0;
  position: relative;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}
.direct-upload-widget .current-preview:has(img) img {
  border-radius: 10px;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
  -moz-transition: transform 0.2s, box-shadow 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s, -webkit-box-shadow 0.2s;
}
.direct-upload-widget .current-preview:has(img) .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.direct-upload-widget .current-preview:has(img) .image-overlay i {
  color: #fff;
  font-size: 1.5em;
}
.direct-upload-widget .current-preview:has(img) a:hover img {
  -webkit-transform: scale(1.02);
     -moz-transform: scale(1.02);
          transform: scale(1.02);
  -webkit-box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
          box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
}
.direct-upload-widget .current-preview:has(img) a:hover .image-overlay {
  opacity: 1;
}
.direct-upload-widget .current-preview .pdf-icon {
  color: #dc2626;
  font-size: 1.8em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.direct-upload-widget .current-preview a:not(:has(img)) {
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}
.direct-upload-widget .current-preview a:not(:has(img)):hover {
  text-decoration: underline;
}
.direct-upload-widget .preview-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 12px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.direct-upload-widget .hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.direct-upload-widget .change-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: border-color 0.2s, background 0.2s;
  -moz-transition: border-color 0.2s, background 0.2s;
  transition: border-color 0.2s, background 0.2s;
  margin: 0;
}
.direct-upload-widget .change-btn:hover {
  border-color: #193b5c;
  background: #e5f7f9;
}
.direct-upload-widget .change-btn i {
  color: #193b5c;
  font-size: 1.1em;
}
.direct-upload-widget .change-btn span {
  font-weight: 500;
  color: #0f2a44;
}
.direct-upload-widget .delete-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s;
  -moz-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
  font-size: inherit;
  font-family: inherit;
}
.direct-upload-widget .delete-btn:hover {
  background: #fdecec;
  border-color: #dc2626;
}
.direct-upload-widget .delete-btn:hover i, .direct-upload-widget .delete-btn:hover span {
  color: #dc2626;
}
.direct-upload-widget .delete-btn i {
  color: #8aa5c0;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.direct-upload-widget .delete-btn span {
  font-weight: 500;
  color: #527291;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.direct-upload-widget .upload-area {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 24px;
  background: #fff;
  border: 2px dashed #dce5ee;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: border-color 0.2s, background 0.2s;
  -moz-transition: border-color 0.2s, background 0.2s;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.direct-upload-widget .upload-area:hover {
  border-color: #193b5c;
  background: #e5f7f9;
}
.direct-upload-widget .upload-area i {
  font-size: 2em;
  color: #193b5c;
}
.direct-upload-widget .upload-area span {
  font-weight: 500;
  color: #527291;
}
.direct-upload-widget .upload-progress {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  margin-top: 12px;
}
.direct-upload-widget .upload-progress .progress-bar-container {
  height: 8px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.direct-upload-widget .upload-progress .progress-bar-fill {
  height: 100%;
  background: #193b5c;
  border-radius: 6px;
  width: 0%;
  -webkit-transition: width 0.2s ease;
  -moz-transition: width 0.2s ease;
  transition: width 0.2s ease;
}
.direct-upload-widget .upload-progress .progress-text {
  font-size: 0.85em;
  color: #527291;
  text-align: center;
}
.direct-upload-widget .upload-error {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fdecec;
  border: 1px solid #dc2626;
  border-radius: 8px;
  color: #dc2626;
  margin-top: 12px;
}
.direct-upload-widget .upload-error .error-message {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.direct-upload-widget .upload-error .retry-btn {
  padding: 4px 12px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.85em;
}
.direct-upload-widget .upload-error .retry-btn:hover {
  background: #dc2626;
  color: #fff;
}
.direct-upload-widget .upload-status {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  margin-top: 12px;
  -webkit-animation: fadeIn 0.2s ease;
     -moz-animation: fadeIn 0.2s ease;
          animation: fadeIn 0.2s ease;
}
.direct-upload-widget .upload-status i {
  font-size: 1.1em;
}
.direct-upload-widget .upload-status.upload-status-success {
  background: #e7f6ec;
  border: 1px solid #bce3c9;
  color: #14532d;
}
.direct-upload-widget .upload-status.upload-status-error {
  background: #fdecec;
  border: 1px solid #f7c9c9;
  color: #991b1b;
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-5px);
            transform: translateY(-5px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-moz-keyframes fadeIn {
  from {
    opacity: 0;
    -moz-transform: translateY(-5px);
         transform: translateY(-5px);
  }
  to {
    opacity: 1;
    -moz-transform: translateY(0);
         transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-5px);
       -moz-transform: translateY(-5px);
            transform: translateY(-5px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
            transform: translateY(0);
  }
}

.cooldown-countdown-active {
  color: #dc2626;
}

.users-toolbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  margin-bottom: 12px;
}
.users-toolbar #search-handle {
  width: 260px;
  max-width: 100%;
}

.empty-state {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.empty-state h3 {
  margin-bottom: 8px;
}
.empty-state p {
  margin: 0 0 24px;
  color: #527291;
  max-width: 44ch;
}
.empty-state p:last-child {
  margin-bottom: 0;
}

.empty-state-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #e5f7f9;
  color: #1b7f84;
  font-size: 1.5em;
}

.empty-state-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 12px;
}

.empty-state-action {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  font-weight: 500;
  color: #0f2a44;
  background: #fff;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.empty-state-action i {
  color: #1b7f84;
}
.empty-state-action:hover {
  border-color: #2bb8be;
  background: #e5f7f9;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  text-decoration: none;
}

.comment-area .user-img {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}
.comment-area .comment {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.comment-area .top-level-comments {
  padding: 0;
}
.comment-area .comment-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}
.comment-area .comment-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  padding: 0;
  margin-bottom: 0;
}
.comment-area .header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.comment-area .header .author {
  font-weight: 600;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
}
.comment-area .header .author a {
  color: inherit;
  text-decoration: none;
}
.comment-area .header .time {
  opacity: 0.7;
  font-size: 0.85rem;
}
.comment-area .header .comment-edits {
  font-size: 0.85rem;
  opacity: 0.7;
}
.comment-area .header .comment-edits a {
  color: #193b5c;
  text-decoration: none;
  padding: 0 4px;
}
.comment-area .header .comment-edits a:hover {
  text-decoration: underline;
}
.comment-area .body-header {
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 10px 14px;
}
.comment-area .body .comment-body {
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.comment-area .body .comment-body p {
  -webkit-margin-before: 0.3em;
          margin-block-start: 0.3em;
  -webkit-margin-after: 0.3em;
          margin-block-end: 0.3em;
}
.comment-area .body .comment-body p:first-child {
  -webkit-margin-before: 0;
          margin-block-start: 0;
}
.comment-area .body .comment-body p:last-child {
  -webkit-margin-after: 0;
          margin-block-end: 0;
}
.comment-area .action-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
  margin-top: 6px;
  margin-left: 4px;
}
.comment-area .action-bar .vote {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  background: transparent;
  border-radius: 20px;
  padding: 0;
}
.comment-area .action-bar .upvote-link,
.comment-area .action-bar .downvote-link {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
  color: #527291;
  border-radius: 50%;
  text-decoration: none;
}
.comment-area .action-bar .upvote-link:hover,
.comment-area .action-bar .downvote-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f2a44;
}
.comment-area .action-bar .upvote-link i,
.comment-area .action-bar .downvote-link i {
  -webkit-transition: -webkit-transform 0.15s ease;
  transition: -webkit-transform 0.15s ease;
  -moz-transition: transform 0.15s ease, -moz-transform 0.15s ease;
  transition: transform 0.15s ease;
  transition: transform 0.15s ease, -webkit-transform 0.15s ease, -moz-transform 0.15s ease;
}
.comment-area .action-bar .upvote-link:hover i,
.comment-area .action-bar .downvote-link:hover i {
  -webkit-transform: scale(1.15);
     -moz-transform: scale(1.15);
          transform: scale(1.15);
}
.comment-area .action-bar .upvote-link:active,
.comment-area .action-bar .downvote-link:active {
  -webkit-transform: scale(0.95);
     -moz-transform: scale(0.95);
          transform: scale(0.95);
}
.comment-area .action-bar .upvote-link.disabled,
.comment-area .action-bar .downvote-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.comment-area .action-bar .upvote-link.voted {
  color: #ff4500;
  opacity: 1;
  background: rgba(255, 69, 0, 0.1);
}
.comment-area .action-bar .upvote-link.voted:hover {
  background: rgba(255, 69, 0, 0.15);
}
.comment-area .action-bar .downvote-link.voted {
  color: #7193ff;
  opacity: 1;
  background: rgba(113, 147, 255, 0.1);
}
.comment-area .action-bar .downvote-link.voted:hover {
  background: rgba(113, 147, 255, 0.15);
}
.comment-area .comment-score {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  padding: 0 2px;
}
.comment-area .action-bar .action-link {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 5px;
  color: #527291;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.comment-area .action-bar .action-link i {
  font-size: 0.9rem;
  -webkit-transition: -webkit-transform 0.15s ease;
  transition: -webkit-transform 0.15s ease;
  -moz-transition: transform 0.15s ease, -moz-transform 0.15s ease;
  transition: transform 0.15s ease;
  transition: transform 0.15s ease, -webkit-transform 0.15s ease, -moz-transform 0.15s ease;
}
.comment-area .action-bar .action-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f2a44;
}
.comment-area .action-bar .action-link:hover i {
  -webkit-transform: scale(1.1);
     -moz-transform: scale(1.1);
          transform: scale(1.1);
}
.comment-area .action-bar .action-link:active {
  -webkit-transform: scale(0.95);
     -moz-transform: scale(0.95);
          transform: scale(0.95);
}
.comment-area .action-bar .reply-link:hover {
  color: #193b5c;
  background: rgba(25, 59, 92, 0.08);
}
.comment-area .action-bar .share-link:hover {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}
.comment-area .action-bar .edit-link:hover {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}
.comment-area .bad-comment {
  opacity: 0.5;
}
.comment-area .bad-comment .body-header {
  background: rgba(0, 0, 0, 0.03);
}
.comment-area .bad-comment:hover {
  opacity: 0.8;
}
.comment-area .bad-comment-body {
  font-style: italic;
  opacity: 0.7;
  font-size: 0.9rem;
}
.comment-area .bad-comment-body a {
  color: #193b5c;
}
.comment-area .show_more_reply {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-left: 4px;
  color: #193b5c;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.comment-area .show_more_reply svg {
  width: 16px;
  height: 16px;
}
.comment-area .show_more_reply:hover {
  background: rgba(25, 59, 92, 0.08);
}
.comment-area .thread-line {
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: #dce5ee;
  cursor: pointer;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
  z-index: 1;
}
.comment-area .thread-line:hover {
  background: #193b5c;
}
.comment-area .ul-comments {
  margin-left: 20px;
  padding-left: 32px;
  position: relative;
  list-style: none;
}
.comment-area .ul-comments::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d1d5db;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
  cursor: pointer;
  border-radius: 1px;
}
.comment-area .ul-comments:hover::before {
  background: darkgray;
}
.comment-area .ul-comments .comment {
  position: relative;
}
.comment-area .ul-comments .comment-wrapper {
  padding-left: 0;
}
.comment-area .ul-comments .user-img {
  width: 32px;
  height: 32px;
}
.comment-area .ul-comments .ul-comments {
  margin-left: 16px;
  padding-left: 28px;
}
.comment-area .ul-comments .ul-comments::before {
  left: 0;
}
.comment-area .ul-comments .ul-comments .user-img {
  width: 28px;
  height: 28px;
}
.comment-area .ul-comments .ul-comments .ul-comments {
  margin-left: 12px;
  padding-left: 24px;
}
.comment-area .ul-comments .ul-comments .ul-comments::before {
  left: 0;
}
.comment-area .ul-comments .ul-comments .ul-comments .user-img {
  width: 24px;
  height: 24px;
}
.comment-area .new-comment-minimal {
  margin: 16px 0;
}
.comment-area .new-comment-minimal .editor-container {
  width: 100%;
}
.comment-area .inline-edit-container {
  margin-top: 8px;
}
.comment-area .inline-edit-container .wmd-wrapper {
  margin: 0;
}
.comment-area .inline-edit-container .wmd-wrapper:not(.wmd-wrapper-minimal) .wmd-input {
  min-height: 100px;
  max-height: 400px;
}
.comment-area .inline-edit-container .wmd-preview {
  margin-top: 10px;
}
.comment-area .reply-comment-minimal {
  margin: 12px 0;
  padding-left: 52px;
}
.comment-area .reply-comment-minimal .editor-container {
  width: 100%;
}
.comment-area .show_more_comment {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  color: #193b5c;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 8px 0;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.comment-area .show_more_comment svg {
  width: 18px;
  height: 18px;
}
.comment-area .show_more_comment:hover {
  background: rgba(25, 59, 92, 0.08);
}
.comment-area .highlight_comment {
  background: rgba(25, 59, 92, 0.05);
  padding-left: 12px;
  margin-left: -12px;
  border-radius: 0 8px 8px 0;
}
@media (max-width: 799px) {
  .comment-area .user-img {
    width: 36px;
    height: 36px;
  }
  .comment-area .comment-wrapper {
    gap: 10px;
    padding: 10px 0;
  }
  .comment-area .body-header {
    padding: 8px 12px;
  }
  .comment-area .action-bar {
    gap: 2px;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .comment-area .action-bar .action-link {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .comment-area .action-bar .action-link i {
    font-size: 0.85rem;
  }
  .comment-area .ul-comments {
    margin-left: 16px;
    padding-left: 24px;
  }
  .comment-area .ul-comments::before {
    left: 0;
  }
  .comment-area .ul-comments .user-img {
    width: 28px;
    height: 28px;
  }
  .comment-area .ul-comments .ul-comments {
    margin-left: 12px;
    padding-left: 20px;
  }
  .comment-area .ul-comments .ul-comments .user-img {
    width: 24px;
    height: 24px;
  }
}

.comment-header-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding-top: 0.5rem;
}
.comment-header-wrapper h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.comment-header-wrapper h2 i {
  font-size: 0.9rem;
}

.comment-sort-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.6em;
  margin-left: auto;
}
.comment-sort-controls .sort-label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.comment-sort-controls .comment-sort-dropdown {
  position: relative;
}
.comment-sort-controls .comment-sort-dropdown .current-sort-text {
  font-size: 0.9rem;
}
.comment-sort-controls .comment-sort-dropdown .hidden-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.comment-sort-controls .comment-sort-dropdown .hidden-select option {
  background: #193b5c;
  color: white;
  padding: 0.3em;
}
.comment-sort-controls .comment-sort-dropdown i.fa-chevron-down {
  font-size: 0.8rem;
  opacity: 0.8;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -moz-transition: transform 0.2s ease, -moz-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease, -moz-transform 0.2s ease;
}
.comment-sort-controls .comment-sort-dropdown:hover i.fa-chevron-down {
  -webkit-transform: rotate(180deg);
     -moz-transform: rotate(180deg);
          transform: rotate(180deg);
}

@media (max-width: 799px) {
  .comment-header-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 1rem;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
       -moz-box-align: start;
            align-items: flex-start;
  }
  .comment-sort-controls {
    margin-left: 0;
  }
  .comment-sort-controls .sort-label {
    font-size: 0.85rem;
  }
  .comment-sort-controls .comment-sort-dropdown .current-sort-text {
    font-size: 0.85rem;
  }
  .comment-sort-controls .comment-sort-dropdown i.fa-chevron-down {
    font-size: 0.75rem;
  }
}
.comment-item {
  padding: 14px 16px;
  border-bottom: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.comment-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
.comment-item .comment-icon {
  margin-right: 14px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}
.comment-item .comment-icon .fa {
  font-size: 16px;
}
.comment-item .comment-icon .fa.fa-puzzle-piece {
  color: #e74c3c;
}
.comment-item .comment-icon .fa.fa-trophy {
  color: #f39c12;
}
.comment-item .comment-icon .fa.fa-rss {
  color: #3498db;
}
.comment-item .comment-icon .fa.fa-file {
  color: #95a5a6;
}
.comment-item .comment-icon .fa.fa-comment {
  color: #2c3e50;
}
.comment-item .comment-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  margin-right: 20px;
}
.comment-item .comment-content a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.comment-item .comment-content a:hover {
  text-decoration: underline;
}
.comment-item .comment-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 14px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  text-align: right;
}
.comment-item .comment-meta .comment-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
}
.comment-item .comment-meta .comment-user .user-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.comment-item .comment-meta .comment-user .comment-score {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
}
.comment-item .comment-meta .comment-user .comment-score.positive {
  background-color: #16a34a;
}
.comment-item .comment-meta .comment-user .comment-score.negative {
  background-color: #dc2626;
}
.comment-item .comment-meta .comment-time {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 500;
  min-width: 70px;
}

.comment-edit-modal {
  padding: 16px;
  min-width: 400px;
  max-width: 600px;
}
.comment-edit-modal .editor-container {
  margin-bottom: 16px;
}
.comment-edit-modal .edit-comment-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.featherlight-edit .featherlight-content {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.inline-comments-container {
  border-radius: 0 0 8px 8px;
  padding: 12px 16px;
  border-top: 1px solid #dce5ee;
}

.inline-comments-loading,
.inline-comments-error {
  text-align: center;
  padding: 16px;
  color: #527291;
}
.inline-comments-loading i,
.inline-comments-error i {
  margin-right: 8px;
}

.inline-comments-error {
  color: #dc2626;
}

.inline-comments-empty {
  text-align: center;
  padding: 16px;
  color: #527291;
  font-style: italic;
}
.inline-comments-empty p {
  margin: 0;
}

.inline-comments-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 12px;
}

.inline-comment-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
}
.inline-comment-item .user-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.inline-comment-item .inline-comment-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.inline-comment-item .inline-comment-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.inline-comment-item .inline-comment-header .author {
  font-weight: 600;
}
.inline-comment-item .inline-comment-header .author a {
  color: inherit;
  text-decoration: none;
}
.inline-comment-item .inline-comment-header .time {
  color: #527291;
  font-size: 0.8rem;
}
.inline-comment-item .inline-comment-header .time::before {
  content: "•";
  margin-right: 6px;
}
.inline-comment-item .comment-body.comment-truncated,
.inline-comment-item .inline-comment-body {
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.inline-comment-item .comment-body.comment-truncated p,
.inline-comment-item .inline-comment-body p {
  margin: 0;
}
.inline-comment-item .inline-comment-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #527291;
}
.inline-comment-item .inline-comment-footer .inline-comment-score,
.inline-comment-item .inline-comment-footer .inline-comment-replies {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
}
.inline-comment-item .inline-comment-footer i {
  font-size: 0.9rem;
}

.inline-comments-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce5ee;
  text-align: center;
}
.inline-comments-footer .view-all-comments-link {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  color: #193b5c;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  -webkit-transition: background 0.15s ease;
  -moz-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.inline-comments-footer .view-all-comments-link:hover {
  background: rgba(25, 59, 92, 0.08);
}
.inline-comments-footer .view-all-comments-link i {
  font-size: 0.85rem;
}

.actionbar-comment.active {
  color: #193b5c;
}

.compact-comments .user-img {
  width: 28px;
  height: 28px;
}
.compact-comments .comment-wrapper {
  gap: 8px;
  padding: 8px 0;
}
.compact-comments .body-header {
  padding: 8px 12px;
  border-radius: 14px;
}
.compact-comments .header {
  font-size: 0.8rem;
  gap: 4px;
}
.compact-comments .body .comment-body {
  font-size: 0.85rem;
  line-height: 1.4;
}
.compact-comments .action-bar {
  margin-top: 4px;
  margin-left: 2px;
  gap: 2px;
}
.compact-comments .action-bar .upvote-link,
.compact-comments .action-bar .downvote-link {
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
}
.compact-comments .comment-score {
  font-size: 0.75rem;
  min-width: 16px;
}
.compact-comments .action-bar .action-link {
  padding: 4px 6px;
  font-size: 0.7rem;
  gap: 3px;
}
.compact-comments .action-bar .action-link i {
  font-size: 0.75rem;
}
.compact-comments .ul-comments {
  margin-left: 12px;
  padding-left: 20px;
}
.compact-comments .ul-comments .user-img {
  width: 24px;
  height: 24px;
}
.compact-comments .ul-comments .ul-comments {
  margin-left: 8px;
  padding-left: 16px;
}
.compact-comments .ul-comments .ul-comments .user-img {
  width: 20px;
  height: 20px;
}
.compact-comments .show_more_reply {
  font-size: 0.75rem;
  padding: 4px 8px;
  margin-top: 4px;
}
.compact-comments .show_more_reply svg {
  width: 12px;
  height: 12px;
}
.compact-comments .compact-comment-list {
  padding: 0;
  margin: 0;
}
.compact-comments .inline-new-user-notice {
  font-size: 0.8rem;
  color: #527291;
  padding: 8px;
  font-style: italic;
}
.compact-comments .reply-comment-minimal {
  padding-left: 36px;
  margin: 8px 0;
}

.inline-simple-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  -moz-transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
  background: white;
}
.inline-comment-input:focus {
  outline: none;
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.1);
  border-radius: 12px;
}
.inline-comment-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.inline-comment-input::-moz-placeholder {
  color: #8aa5c0;
}
.inline-comment-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.inline-comment-input::placeholder {
  color: #8aa5c0;
}

.inline-submit-btn {
  -webkit-align-self: flex-end;
          align-self: flex-end;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 16px;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
  background-color: #193b5c;
  color: white;
  border: none;
}
.inline-submit-btn:hover {
  background-color: rgb(16.2820512821, 38.4256410256, 59.9179487179);
}
.inline-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.inline-reply-form {
  margin: 8px 0 8px 52px;
}

.inline-reply-actions,
.inline-form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 8px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.inline-cancel-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  cursor: pointer;
  color: #527291;
}
.inline-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.inline-comments-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.inline-comments-header .inline-new-comment-container {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}

.inline-sort-controls {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.inline-sort-select {
  padding: 6px 24px 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.inline-sort-select:focus {
  outline: none;
  border-color: #193b5c;
}
.inline-sort-select:hover {
  border-color: #8aa5c0;
}

.inline-load-more {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 16px;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #193b5c;
  background: transparent;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  cursor: pointer;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.inline-load-more:hover {
  background: rgba(25, 59, 92, 0.08);
  border-color: #193b5c;
}
.inline-load-more i {
  font-size: 0.9rem;
}

.info-float {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  width: 20%;
}

.submission-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1), border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 12px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 12px 12px 12px 16px;
  background: #fff;
  -webkit-box-shadow: inset 4px 0 0 0 #dce5ee, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: inset 4px 0 0 0 #dce5ee, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
}
.submission-row:has(.state.AC) {
  -webkit-box-shadow: inset 4px 0 0 0 #166534, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: inset 4px 0 0 0 #166534, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
}
.submission-row:has(.state._AC) {
  -webkit-box-shadow: inset 4px 0 0 0 #f59e0b, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: inset 4px 0 0 0 #f59e0b, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
}
.submission-row:has(.state.WA), .submission-row:has(.state.TLE), .submission-row:has(.state.MLE), .submission-row:has(.state.OLE), .submission-row:has(.state.RTE), .submission-row:has(.state.IR), .submission-row:has(.state.CE), .submission-row:has(.state.IE) {
  -webkit-box-shadow: inset 4px 0 0 0 #b91c1c, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: inset 4px 0 0 0 #b91c1c, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
}
.submission-row:has(.state.QU), .submission-row:has(.state.G) {
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.06);
}
.submission-row:hover {
  border-color: #b6c7da;
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
}
.submission-row .sub-result {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  font-weight: 600;
  gap: 10px;
}
.submission-row .sub-result .state {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.submission-row .sub-result .language {
  background-color: #f1f5f9;
  color: #193b5c;
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  border-radius: 6px;
  padding: 2px 8px;
}
.submission-row .sub-result .score {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.submission-row .sub-details {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
  overflow: hidden;
}
.submission-row .sub-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
  font-size: 1.2em;
  margin-bottom: 10px;
}
.submission-row .sub-info .sub-user {
  overflow-wrap: break-word;
}
.submission-row .sub-info .sub-problem {
  font-weight: 700;
}
.submission-row .sub-info .sub-problem:hover {
  text-decoration: underline;
}
.submission-row .sub-testcase {
  color: #193b5c;
  white-space: nowrap;
}
.submission-row .sub-prop a {
  white-space: nowrap;
}
.submission-row .sub-usage {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 13px;
  color: #193b5c;
}
.submission-row .sub-usage .time {
  font-weight: 600;
  color: #0f2a44;
}
.submission-row .sub-user-img {
  width: 70px;
  height: 70px;
  margin-right: 15px;
}

.sub-prop .fa {
  display: none;
}

label[for=language], label[for=status] {
  padding-bottom: 0.25em;
  display: block;
}

#language {
  margin-top: 0.5em;
  width: 100%;
}

#status {
  width: 100%;
}

#statistics-table tr:not(:first-child) td {
  border-top: 1px solid white !important;
}

#statistics-table tr:not(:last-child) td:not(:last-child) {
  border-right: 1px solid white;
}

#content-left.submission {
  -webkit-box-flex: 70%;
  -webkit-flex: 70%;
     -moz-box-flex: 70%;
          flex: 70%;
}

#content-right.submission {
  -webkit-box-flex: 12%;
  -webkit-flex: 12%;
     -moz-box-flex: 12%;
          flex: 12%;
  min-width: initial;
  max-width: 100%;
  padding-top: 0;
}

@media (max-width: 799px) {
  .submission-row {
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    padding-left: 12px;
    min-width: 0;
  }
  .submission-row .sub-details, .submission-row .sub-info, .submission-row .sub-result {
    min-width: 0;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .submission-row .sub-user, .submission-row .sub-problem {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .submission-row .sub-prop .label {
    display: none;
  }
  .submission-row .sub-prop .fa {
    display: inline-block;
  }
  .submission-row .sub-user-img {
    display: none;
  }
  #fake-info-float {
    display: none;
  }
  #content-left.submission {
    -webkit-box-flex: 100%;
    -webkit-flex: 100%;
       -moz-box-flex: 100%;
            flex: 100%;
  }
  #content-right.submission {
    display: none;
  }
}
.submission-contest {
  color: #193b5c;
}

.statistics-table .status {
  font-weight: bold;
  text-align: left;
}
.statistics-table .count {
  color: black;
}

#test-cases {
  font-size: 1.1em;
}
#test-cases .batch-cases {
  margin: 0;
  padding-left: 1em;
  padding-bottom: 3px;
  padding-top: 3px;
}
#test-cases .case-info {
  margin: 0;
  padding: 16px;
  border: 1px solid #dce5ee;
  border-left: 4px solid #2f5680;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f2a44;
}
#test-cases .case-output {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#test-cases .testcases-table {
  width: 100%;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
#test-cases .testcases-table thead td:first-child {
  border-top-left-radius: 12px;
}
#test-cases .testcases-table thead td:last-child {
  border-top-right-radius: 12px;
}
#test-cases .testcases-table td {
  padding: 10px 12px;
  width: 18.75%;
}
#test-cases .testcases-table .case-row td {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #193b5c;
}
#test-cases .testcases-table .case-row td .col-title,
#test-cases .testcases-table .case-row td b,
#test-cases .testcases-table .case-row td [class^=case-],
#test-cases .testcases-table .case-row td [class*=" case-"] {
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
#test-cases .testcases-table .case-row td .col-title,
#test-cases .testcases-table .case-row td b {
  font-weight: 600;
  color: #0f2a44;
}
#test-cases .testcases-table .case-row {
  -webkit-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
#test-cases .testcases-table .case-row + .case-row td {
  border-top: 1px solid #f1f5f9;
}
#test-cases .testcases-table .case-row:hover {
  cursor: pointer;
  background: #f1f5f9;
}
#test-cases .testcases-table .toggle .fa-chevron-right {
  -webkit-transition: -webkit-transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: -webkit-transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 180ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
#test-cases .testcases-table .toggle.open .fa-chevron-right {
  -webkit-transform: rotate(90deg);
     -moz-transform: rotate(90deg);
          transform: rotate(90deg);
}
#test-cases .toggle {
  font-weight: normal;
}
#test-cases .case-feedback {
  vertical-align: top;
}
#test-cases .case-ext-feedback {
  width: 50%;
}

#overall-row:hover {
  cursor: default !important;
}

.overall-result-AC {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #15803d;
          box-shadow: inset 4px 0 0 0 #15803d;
}

.overall-result-_AC {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #1b7f84;
          box-shadow: inset 4px 0 0 0 #1b7f84;
}

.overall-result-WA {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #dc2626;
          box-shadow: inset 4px 0 0 0 #dc2626;
}

.overall-result-TLE {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #b45309;
          box-shadow: inset 4px 0 0 0 #b45309;
}

.overall-result-MLE {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #c2410c;
          box-shadow: inset 4px 0 0 0 #c2410c;
}

.overall-result-RTE,
.overall-result-IR,
.overall-result-OLE,
.overall-result-OTH {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #7c3aed;
          box-shadow: inset 4px 0 0 0 #7c3aed;
}

.overall-result-CE {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #2f5680;
          box-shadow: inset 4px 0 0 0 #2f5680;
}

.overall-result-IE {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #991b1b;
          box-shadow: inset 4px 0 0 0 #991b1b;
}

.overall-result-AB {
  background: #f1f5f9;
  -webkit-box-shadow: inset 4px 0 0 0 #8aa5c0;
          box-shadow: inset 4px 0 0 0 #8aa5c0;
}

.batch-row {
  font-weight: 600;
}
.batch-row td {
  background: #f1f5f9;
}

.batch-row-ac td:first-child {
  -webkit-box-shadow: inset 3px 0 0 0 #15803d;
          box-shadow: inset 3px 0 0 0 #15803d;
}

.batch-row-failed td:first-child {
  -webkit-box-shadow: inset 3px 0 0 0 #dc2626;
          box-shadow: inset 3px 0 0 0 #dc2626;
}

.col-title {
  font-weight: 600;
  color: #193b5c;
}

.case-AC {
  color: #166534;
  font-weight: 600;
}

.case-_AC {
  color: #155e63;
  font-weight: 600;
}

.case-WA {
  color: #b91c1c;
  font-weight: 600;
}

.case-TLE {
  color: #92400e;
  font-weight: 600;
}

.case-MLE, .case-OLE {
  color: #9a3412;
  font-weight: 600;
}

.case-RTE, .case-IR {
  color: #6d28d9;
  font-weight: 600;
}

.case-CE {
  color: #14314c;
  font-weight: 600;
}

.case-IE {
  color: #7f1d1d;
  font-weight: 600;
}

.case-SC {
  color: #8aa5c0;
  font-weight: 400;
}

.case-icons i {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 799px) {
  .testcases-table {
    display: block;
  }
  .testcases-table thead,
  .testcases-table tbody {
    display: block;
  }
  .testcases-table tr {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
       -moz-box-align: baseline;
            align-items: baseline;
    gap: 4px 12px;
    padding: 10px 12px;
  }
  .testcases-table td {
    display: block;
    width: auto !important;
    padding: 0;
    border-top: none !important;
  }
  .testcases-table tr > td:first-child {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
       -moz-box-flex: 1;
            flex: 1 0 auto;
  }
  .testcases-table tr > td:nth-child(2) {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    margin-left: auto;
  }
  .testcases-table .case-row + .case-row {
    border-top: 1px solid #f1f5f9;
  }
  .testcases-table .case-feedback {
    display: block;
    padding: 0 8px 12px;
  }
}
.half-hr {
  float: left;
  width: 30%;
}

.source-wrap .line {
  position: relative;
}
.source-wrap .highlighter {
  position: absolute;
  width: 9999px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.source-wrap a:active .line .highlighter {
  background: rgba(255, 212, 0, 0.48);
}

.submission-info {
  text-align: right;
  float: right;
}
.submission-info .submission-date {
  color: gray;
}

@media (min-width: 800px) {
  .lightbox-submissions .lightbox-submissions-time {
    padding-right: 1em;
  }
  .lightbox-submissions td {
    padding-right: 0.2em;
    font-size: 1.2em;
  }
}
.list-contest {
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 16px 20px 16px 24px;
  margin-bottom: 12px;
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 20px;
  background: #fff;
  -webkit-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-box-shadow: inset 4px 0 0 0 #dce5ee, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #dce5ee, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.list-contest.is-current, .list-contest.is-active {
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.list-contest.is-past {
  -webkit-box-shadow: inset 4px 0 0 0 #b6c7da, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #b6c7da, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.list-contest:hover {
  border-color: #b6c7da;
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
}
.list-contest .info-contest {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.list-contest .contest-col-label {
  display: none;
}
.list-contest .contest-user-count {
  color: #527291;
  font-size: 0.9em;
  white-space: nowrap;
}
.list-contest .contest-format-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  gap: 12px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
}
.list-contest .participate-button {
  margin: 0;
}

@media (max-width: 799px) {
  .list-contest {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .list-contest .contest-format-user {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
       -moz-box-orient: horizontal;
       -moz-box-direction: normal;
            flex-direction: row;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    width: 100%;
  }
}
#contest-calendar {
  border-collapse: collapse;
  width: 100%;
}
#contest-calendar th {
  border-bottom: 1px solid #dce5ee;
}
#contest-calendar th.sun {
  border-left: 1px solid #dce5ee;
}
#contest-calendar th.sun, #contest-calendar th.mon, #contest-calendar th.tue, #contest-calendar th.wed, #contest-calendar th.thu, #contest-calendar th.fri, #contest-calendar th.sat {
  font-size: 0.95em;
  border-right: 1px solid #dce5ee;
  background: #eef2f7;
}
#contest-calendar td {
  height: 110px;
  width: 170px;
  color: #000;
  vertical-align: top;
  text-align: right;
  font-size: 0.75em;
  border-right: 1px solid #dce5ee;
  border-bottom: 1px solid #dce5ee;
  -webkit-transition-duration: 0.2s;
     -moz-transition-duration: 0.2s;
          transition-duration: 0.2s;
}
#contest-calendar td .num {
  font-size: 1.1em;
  font-weight: bold;
  display: block;
  border-bottom: 1px dashed #dce5ee;
  padding-right: 0.2em;
  margin-bottom: 0.4em;
}
#contest-calendar td ul {
  text-decoration: none;
  text-align: left;
  padding: 0;
  margin: 0;
}
#contest-calendar td ul li {
  margin-left: 17px;
  margin-bottom: 0.2em;
}
#contest-calendar td ul li i.fa {
  color: orange;
}
#contest-calendar td ul li a {
  text-decoration: none;
  color: #222;
}
#contest-calendar td ul li a:hover {
  text-decoration: underline;
}
#contest-calendar td:hover {
  background: rgba(0, 0, 255, 0.3);
  color: white;
}
#contest-calendar td:hover .num {
  font-weight: bold;
}
#contest-calendar td:hover ul li a {
  font-weight: normal;
}
#contest-calendar .noday {
  background: #f1f1f1;
}
#contest-calendar .today {
  background: rgba(255, 255, 100, 0.5);
}
#contest-calendar tr td:first-child {
  border-left: 1px solid #8aa5c0;
}

#banner.contest-banner {
  text-align: center;
  padding: 1em 1.5em;
  margin-bottom: 1em;
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be;
          box-shadow: inset 4px 0 0 0 #2bb8be;
}
#banner.contest-banner .contest-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.5em 0;
  color: #0a1c2e;
}
#banner.contest-banner .contest-title a {
  color: inherit;
  text-decoration: none;
}
#banner.contest-banner .contest-title a:hover {
  color: #193b5c;
}
#banner.contest-banner .contest-status {
  margin-bottom: 0.4em;
}
#banner.contest-banner .contest-status .status-text {
  font-size: 1.15em;
  font-weight: 600;
  color: #0a1c2e;
}
#banner.contest-banner .contest-status .status-ended::before {
  content: "✓ ";
  color: #527291;
}
#banner.contest-banner .contest-status .status-active {
  color: #193b5c;
}
#banner.contest-banner .contest-status .status-active::before {
  content: "● ";
  -webkit-animation: pulse 1.5s infinite;
     -moz-animation: pulse 1.5s infinite;
          animation: pulse 1.5s infinite;
}
#banner.contest-banner .contest-status .status-upcoming {
  color: #2563eb;
}
#banner.contest-banner .contest-status .status-upcoming::before {
  content: "◷ ";
}
#banner.contest-banner .contest-time-info {
  font-size: 0.9em;
  color: #14314c;
}
#banner.contest-banner .contest-freeze-info {
  font-size: 0.85em;
  color: #dc2626;
  margin-top: 0.4em;
  font-weight: 500;
}

@-webkit-keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@-moz-keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
#banner:not(.contest-banner) {
  padding-bottom: 1em;
}
#banner:not(.contest-banner) a.date {
  display: block;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  font-size: 2em;
  padding-bottom: 0.15em;
}
#banner:not(.contest-banner) a.date:link, #banner:not(.contest-banner) a.date:visited {
  color: #5B80B9;
}
#banner:not(.contest-banner) a.date:hover {
  color: #0645AD;
}
#banner:not(.contest-banner) .time {
  text-align: center;
  display: block;
  color: rgb(85, 85, 85);
  font-size: 15px;
}

.time-left {
  text-align: left;
  padding-bottom: 0.5em;
}

.list-contest .contest-tags {
  vertical-align: top;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-top: 5px;
}
.list-contest .contest-tag-hidden {
  background-color: #000000;
  color: #ffffff;
}

.first-solve {
  position: relative;
}
.first-solve::after {
  content: "★";
  position: absolute;
  top: 2px;
  right: 10%;
  font-size: 0.6rem;
  color: #f59e0b;
}

/* ===== CONTEST RANKING TABLE - Clean Design ===== */
.contest-ranking-page .ranking-table-wrapper {
  overflow-x: auto;
}
.contest-ranking-page #users-table {
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}
.contest-ranking-page #users-table a {
  display: block;
}
.contest-ranking-page #users-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #dce5ee;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.contest-ranking-page #users-table td a:hover {
  text-decoration: none;
}
.contest-ranking-page #users-table thead th {
  background: #f1f5f9;
  color: #2f5680;
  border-bottom: 1px solid #b6c7da;
  padding: 0.5rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.contest-ranking-page #users-table thead th a {
  color: #2f5680;
  text-decoration: none;
}
.contest-ranking-page #users-table thead th a:hover {
  color: #1b7f84;
}
.contest-ranking-page #users-table thead th.problem-score-col {
  min-width: 45px;
  padding: 0.4rem 0.2rem;
}
.contest-ranking-page #users-table thead th.problem-score-col a {
  color: #2f5680;
  font-weight: 600;
}
.contest-ranking-page #users-table thead th.problem-score-col .point-denominator {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 0.7em;
  color: #527291;
  margin-top: 1px;
}
.contest-ranking-page #users-table thead th.problem-score-col .problem-code {
  display: none;
}
.contest-ranking-page #users-table tbody tr {
  background: #fff;
  -webkit-transition: background 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: background 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: background 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contest-ranking-page #users-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}
.contest-ranking-page #users-table tbody tr:hover {
  background: #e5f7f9;
}
.contest-ranking-page #users-table tbody tr:last-child td {
  border-bottom: none;
}
.contest-ranking-page #users-table tbody tr.highlight {
  background: #e5f7f9 !important;
}
.contest-ranking-page #users-table tbody tr.highlight td:first-child {
  -webkit-box-shadow: inset 3px 0 0 0 #2bb8be;
          box-shadow: inset 3px 0 0 0 #2bb8be;
}
.contest-ranking-page #users-table tbody tr.disqualified {
  opacity: 0.5;
}
.contest-ranking-page #users-table tbody tr.disqualified td {
  text-decoration: line-through;
  color: #8aa5c0;
}
.contest-ranking-page #users-table thead th.rank {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 12;
  min-width: 2.5rem;
  max-width: 2.5rem;
}
.contest-ranking-page #users-table thead th.username {
  position: -webkit-sticky;
  position: sticky;
  left: 2.5rem;
  z-index: 12;
  min-width: 12rem;
  max-width: 12rem;
}
.contest-ranking-page #users-table thead th.points:not(.problem-score-col) {
  position: -webkit-sticky;
  position: sticky;
  left: -moz-calc(2.5rem + 12rem);
  left: calc(2.5rem + 12rem);
  z-index: 12;
  min-width: 4.5rem;
}
.contest-ranking-page #users-table tbody td.rank-td {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  background: inherit;
  min-width: 2.5rem;
}
.contest-ranking-page #users-table tbody td.user-name {
  position: -webkit-sticky;
  position: sticky;
  left: 2.5rem;
  z-index: 2;
  background: inherit;
  min-width: 12rem;
  max-width: 12rem;
}
.contest-ranking-page #users-table tbody td.user-points {
  position: -webkit-sticky;
  position: sticky;
  left: -moz-calc(2.5rem + 12rem);
  left: calc(2.5rem + 12rem);
  z-index: 2;
  background: inherit;
  min-width: 4.5rem;
}
.contest-ranking-page .rank {
  min-width: 2.5rem;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  font-size: 0.85rem;
}
.contest-ranking-page .points {
  min-width: 4.5rem;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 0.85rem;
}
.contest-ranking-page .start-time {
  font-size: 0.7rem;
  color: #8aa5c0;
}
.contest-ranking-page .user-name {
  padding: 0.35rem 0.5rem !important;
  text-align: left !important;
  font-size: 0.85rem;
}
.contest-ranking-page .user-name .user-img {
  border-radius: 50%;
  border: 1px solid #dce5ee;
}
.contest-ranking-page .user-name a.user-name {
  display: inline !important;
  font-weight: 500;
  font-size: 0.85rem;
}
.contest-ranking-page .user-name a.user-name:hover {
  color: #193b5c;
}
.contest-ranking-page .user-name form {
  display: inline !important;
}
.contest-ranking-page .contest-participation-operation {
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.2rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.contest-ranking-page .contest-participation-operation form {
  display: inline !important;
  margin: 0;
}
.contest-ranking-page .contest-participation-operation a {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: -moz-inline-box !important;
  display: inline-flex !important;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 1.4em;
  height: 1.4em;
  padding: 0;
  color: #527291;
  opacity: 0.6;
  -webkit-transition: opacity 0.15s;
  -moz-transition: opacity 0.15s;
  transition: opacity 0.15s;
}
.contest-ranking-page .contest-participation-operation a:hover {
  opacity: 1;
  color: #193b5c;
}
.contest-ranking-page .contest-participation-operation a i.fa {
  font-size: 0.8em;
}
.contest-ranking-page .contest-participation-operation .disqualify-participation:hover {
  color: #dc2626;
}
.contest-ranking-page .contest-participation-operation .un-disqualify-participation:hover {
  color: #28a745;
}
.contest-ranking-page.admin-mode .contest-participation-operation {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
}
.contest-ranking-page td.problem-score-col {
  padding: 0.2rem !important;
  text-align: center;
  cursor: pointer;
}
.contest-ranking-page td.problem-score-col a {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -moz-box !important;
  display: flex !important;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 0.25rem 0.2rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 1.6rem;
  background: transparent;
  -webkit-transition: background 0.15s ease;
  -moz-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.contest-ranking-page td.problem-score-col a:hover {
  background: rgba(0, 0, 0, 0.06);
}
.contest-ranking-page .solving-time {
  font-size: 0.7rem;
  font-weight: 400;
  color: #527291;
  line-height: 1.2;
}
.contest-ranking-page .fullname,
.contest-ranking-page .user-table-fullname {
  display: block;
  font-size: 0.8rem;
  color: #14314c;
  line-height: 1.3;
  margin-top: 2px;
  font-weight: 400;
}
.contest-ranking-page .school {
  display: block;
  font-size: 0.75rem;
  color: #527291;
  line-height: 1.2;
}
.contest-ranking-page .organization-column {
  display: none;
  text-align: left !important;
}
.contest-ranking-page .ranking-filters-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.3rem;
  padding: 0.3rem 0;
  margin-bottom: 0.4rem;
}
.contest-ranking-page .ranking-filters-container .filter-option {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-size: 12px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  color: #193b5c;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contest-ranking-page .ranking-filters-container .filter-option:hover {
  background: #f1f5f9;
  border-color: #b6c7da;
}
.contest-ranking-page .ranking-filters-container .filter-option:has(input:checked) {
  background: #e5f7f9;
  border-color: #2bb8be;
  color: #1b7f84;
  font-weight: 500;
}
.contest-ranking-page .ranking-filters-container .filter-option input[type=checkbox] {
  accent-color: #193b5c;
  width: 0.85rem;
  height: 0.85rem;
  cursor: pointer;
  margin: 0;
}
.contest-ranking-page .ranking-filters-container .action-btn.small {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}
.contest-ranking-page .ranking-filters-primary {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 0.8rem;
}
.contest-ranking-page .ranking-filters-primary .ranking-filters-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.8rem;
}
.contest-ranking-page .ranking-filters-primary .ranking-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.contest-ranking-page .ranking-filters-display {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.3rem 0.8rem;
}
.contest-ranking-page tr.pinned-row {
  font-weight: 600;
  border-bottom: 2px solid #dce5ee;
}
.contest-ranking-page .ranking-search-input {
  width: 200px;
  height: 2.2em;
  border-radius: 8px;
  border: 1px solid #dce5ee;
  padding: 0 10px;
  font-size: 12px;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contest-ranking-page .ranking-search-input:focus {
  border-color: #2bb8be;
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
}
.contest-ranking-page #search-contest {
  width: 180px;
  height: 2em;
  border-radius: 4px;
  border: 1px solid #dce5ee;
  padding: 0 0.5em;
  font-size: 0.8rem;
}
.contest-ranking-page #search-contest:focus {
  border-color: #193b5c;
  outline: none;
}
.contest-ranking-page .select2-selection__arrow {
  display: none;
}
.contest-ranking-page .select2-selection__rendered {
  cursor: text;
  overflow: initial !important;
}
.contest-ranking-page .select2-results__option {
  white-space: nowrap;
}
@media (max-width: 799px) {
  .contest-ranking-page .ranking-filters-primary {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
       -moz-box-align: start;
            align-items: flex-start;
    gap: 0.3rem;
  }
  .contest-ranking-page .ranking-filters-primary .ranking-filters-group {
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .contest-ranking-page .ranking-search-input {
    width: 100%;
  }
  .contest-ranking-page #users-table thead th {
    padding: 0.4rem 0.2rem;
    font-size: 0.7rem;
  }
  .contest-ranking-page #users-table td {
    padding: 0.25rem 0.15rem;
  }
  .contest-ranking-page #users-table thead th.rank {
    min-width: 1.8rem;
    max-width: 1.8rem;
  }
  .contest-ranking-page #users-table thead th.username {
    left: 1.8rem;
    min-width: 8rem;
    max-width: 8rem;
  }
  .contest-ranking-page #users-table thead th.points:not(.problem-score-col) {
    position: static;
    min-width: 3rem;
  }
  .contest-ranking-page #users-table tbody td.rank-td {
    min-width: 1.8rem;
    font-size: 0.75rem;
  }
  .contest-ranking-page #users-table tbody td.user-name {
    left: 1.8rem;
    min-width: 8rem;
    max-width: 8rem;
    overflow: hidden;
    white-space: nowrap;
  }
  .contest-ranking-page #users-table tbody td.user-name > div {
    max-width: 100% !important;
    overflow: hidden;
    white-space: nowrap;
  }
  .contest-ranking-page #users-table tbody td.user-name .user-img {
    display: none !important;
  }
  .contest-ranking-page #users-table tbody td.user-name .rating {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  .contest-ranking-page #users-table tbody td.user-name .rating a {
    font-size: 0.75rem;
  }
  .contest-ranking-page #users-table tbody td.user-points {
    position: static;
    min-width: 3rem;
    font-size: 0.75rem;
  }
}

.no-participations-message {
  text-align: center;
  padding: 2em;
  color: #527291;
  font-size: 0.95rem;
}

.contest-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  margin-right: 6px;
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
}

.contest-tag-edit {
  background-color: #f1f5f9;
  border: 1px solid #dce5ee;
}
.contest-tag-edit a {
  color: #193b5c;
}

.contest-tag-private {
  background-color: #193b5c;
  color: #fff;
}

.contest-tag-org {
  background-color: #f1f5f9;
  border: 1px solid #dce5ee;
}
.contest-tag-org a {
  color: #193b5c;
}

.contest-tag-rated {
  background-color: #1b7f84;
  color: #fff;
}

.contest-list-title {
  font-size: 17px;
  font-weight: 600;
}

.contest-list-sort {
  color: #2f5680;
}

form.contest-join-pseudotab {
  display: inline;
  line-height: 1.7em;
  margin-left: auto;
  float: right;
}

.contest-participation-operation {
  margin-left: auto;
}
.contest-participation-operation .fa {
  color: #193b5c;
}
.contest-participation-operation a + a {
  padding-left: 1px;
}
.contest-participation-operation {
  padding-left: 5px;
}

.contest-clarifications {
  margin-top: 1.25em;
}

.contest-form-title {
  margin: 0 0 0.85em;
}

.contest-clarifications-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7em;
}
.contest-clarifications-header h2 {
  margin: 0;
}

.contest-clarifications-add {
  color: #193b5c;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}
.contest-clarifications-add:hover {
  color: #0f2a44;
  text-decoration: none;
}

.contest-clarification-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contest-clarification {
  background: #fff;
  border: 1px solid #dce5ee;
  border-left: 4px solid #193b5c;
  border-radius: 10px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.06);
  padding: 0.85rem 1rem;
}

.contest-clarification-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.contest-clarification-problem {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #0f2a44;
  font-weight: 600;
  text-decoration: none;
}

a.contest-clarification-problem:hover {
  color: #193b5c;
  text-decoration: none;
}

.contest-clarification-problem-code {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  padding: 0.1rem 0.4rem;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  background: #eef2f7;
  color: #193b5c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
}

.contest-clarification-problem-name {
  overflow-wrap: anywhere;
}

.contest-clarification-time {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

.contest-clarification-body {
  color: #0f2a44;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contest-clarification-body p {
  margin: 0 0 0.6em;
}
.contest-clarification-body p:last-child {
  margin-bottom: 0;
}

.contest-clarification-more {
  display: inline;
  margin: 0 0 0 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: #193b5c;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.contest-clarification-more:hover {
  color: #0f2a44;
  text-decoration: underline;
}

.contest-clarification-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed #dce5ee;
  border-radius: 8px;
  background: #eef2f7;
  color: #527291;
  font-style: italic;
  text-align: center;
}

.contest-clone-errors {
  color: #dc2626;
}

@media (max-width: 600px) {
  .contest-clarification {
    padding: 0.75rem;
  }
  .contest-clarification-meta {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 0.35rem;
  }
}
.featherlight.contest-tag-lightbox .featherlight-content {
  height: 80%;
  width: 60%;
  min-width: 60%;
  overflow: auto;
  border-radius: 8px;
}

@media (max-width: 799px) {
  .featherlight.contest-tag-lightbox .featherlight-content {
    width: 95%;
  }
}
#bulk-disqualify-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
#bulk-disqualify-modal[style*="display: block"], #bulk-disqualify-modal[style*="display:block"] {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -moz-box !important;
  display: flex !important;
}
#bulk-disqualify-modal .modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
#bulk-disqualify-modal .modal-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #dce5ee;
  background: #eef2f7;
}
#bulk-disqualify-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f2a44;
}
#bulk-disqualify-modal .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #527291;
  line-height: 1;
  padding: 0;
}
#bulk-disqualify-modal .modal-header .modal-close:hover {
  color: #dc2626;
}
#bulk-disqualify-modal .modal-body {
  padding: 1.25rem;
}
#bulk-disqualify-modal .modal-body p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #0f2a44;
}
#bulk-disqualify-modal .modal-body textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
#bulk-disqualify-modal .modal-body textarea:focus {
  outline: none;
  border-color: #193b5c;
}
#bulk-disqualify-modal .modal-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #dce5ee;
  background: #eef2f7;
}
#bulk-disqualify-modal .modal-footer .btn-default {
  padding: 0.5rem 1rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}
#bulk-disqualify-modal .modal-footer .btn-default:hover {
  background: #f1f5f9;
}

.contest-edit-page .form-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.4em 0.75em;
  margin-bottom: 1em;
}
.contest-edit-page .form-row > label {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  margin: 0;
  font-weight: 600;
}
.contest-edit-page .form-row > .field-error,
.contest-edit-page .form-row > .form-help {
  -webkit-flex-basis: 100%;
          flex-basis: 100%;
  margin-top: 0.1em;
  font-size: 0.9em;
}
.contest-edit-page .form-row.form-row-block {
  display: block;
}
.contest-edit-page .form-row.form-row-block > label {
  display: block;
  margin-bottom: 0.4em;
}
.contest-edit-page .form-row.form-row-block > .field-error,
.contest-edit-page .form-row.form-row-block > .form-help {
  display: block;
  margin-top: 0.4em;
  font-size: 0.9em;
}
.contest-edit-page .form-help i.fa {
  margin-right: 0.25em;
}
.contest-edit-page .section-title {
  margin: 0 0 0.6em 0;
  font-size: 1.25em;
  font-weight: 700;
}
.contest-edit-page hr {
  border: 0;
  border-top: 1px solid #dce5ee;
  margin: 1.4em 0 1em;
}
.contest-edit-page input[type=text] {
  width: 32em;
  max-width: 100%;
}
.contest-edit-page input[type=number] {
  width: 5em;
}
.contest-edit-page input#id_key {
  width: 24em;
  max-width: 100%;
}
.contest-edit-page input[name$=time],
.contest-edit-page input[name=freeze_after],
.contest-edit-page input[name=time_limit] {
  width: 14em;
}
.contest-edit-page select {
  min-width: 12em;
  max-width: 22em;
}
.contest-edit-page .select2-container {
  width: 50% !important;
  max-width: none !important;
  min-width: 0;
}
.contest-edit-page textarea,
.contest-edit-page .wmd-panel,
.contest-edit-page #format_config-field .ace_editor {
  width: 100%;
  max-width: none;
}
.contest-edit-page #format_config-field {
  display: none;
  -webkit-flex-basis: 100%;
          flex-basis: 100%;
}
.contest-edit-page .config-toggle-btn {
  margin-left: 0.5em;
  padding: 2px 8px;
  font-size: 0.85em;
}
.contest-edit-page .sortable-table input[type=number] {
  width: 4em;
}
.contest-edit-page .sortable-table .contest-row-type-header,
.contest-edit-page .sortable-table .contest-row-type-cell {
  width: 5.25em;
  min-width: 5.25em;
  text-align: center;
}
.contest-edit-page .sortable-table .contest-row-type-toggle {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  border: 1px solid #dce5ee;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  white-space: nowrap;
}
.contest-edit-page .sortable-table .contest-row-type-btn {
  border: 0;
  background: transparent;
  color: #193b5c;
  cursor: pointer;
  min-width: 2.1em;
  padding: 0.35em 0.45em;
  line-height: 1.2;
}
.contest-edit-page .sortable-table .contest-row-type-btn + .contest-row-type-btn {
  border-left: 1px solid #dce5ee;
}
.contest-edit-page .sortable-table .contest-row-type-btn.active {
  background: #193b5c;
  color: #fff;
}
.contest-edit-page .sortable-table .contest-row-type-btn:not(.active):hover {
  background: rgba(25, 59, 92, 0.08);
  color: #0f2a44;
}
.contest-edit-page .sortable-table .contest-row-item-cell {
  min-width: 18em;
}
.contest-edit-page .sortable-table .contest-row-item-panel {
  width: 100%;
}
.contest-edit-page .sortable-table .sortable-col-problem,
.contest-edit-page .sortable-table .sortable-col-quiz {
  min-width: 16em;
}
.contest-edit-page .sortable-table .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

#judge-versions {
  display: block;
}
#judge-versions .version {
  font-family: var(--md-code-font-family), JetBrains Mono, ui-monospace, SFMono-Regular, Fira Code, monospace;
}
#judge-versions .version-blank {
  background: #f1f5f9;
}
#judge-versions .version-latest {
  background: rgba(179, 255, 63, 0.9019607843);
}
#judge-versions .version-outdated {
  background: rgba(255, 0, 0, 0.8);
  color: white;
}
#judge-versions tbody {
  display: block;
}
#judge-versions tr {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
     -moz-box-orient: horizontal;
     -moz-box-direction: normal;
          flex-direction: row;
  padding: 0;
}
#judge-versions tr:first-child {
  position: -webkit-sticky;
  position: sticky;
  top: 42px;
  line-height: 1.8em;
}
#judge-versions td, #judge-versions th {
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 0 110px;
     -moz-box-flex: 1;
          flex: 1 0 110px;
  overflow-x: hidden;
  height: auto;
  padding: 7px 5px;
}

.django-as-table {
  text-align: left;
}
.django-as-table th {
  vertical-align: top;
  padding-top: 4px;
}

body:has(.chat-page) footer {
  display: none;
}
body:has(.chat-page) #content {
  padding-top: 0;
  margin-bottom: 0;
  width: 100%;
}
body:has(.chat-page) #content-body {
  padding-bottom: 0;
}
body:has(.chat-page) #page-container {
  width: 100%;
  min-height: 0;
}
body:has(.chat-page) .sidebox h3 {
  border-radius: 0;
}
@media (min-width: 800px) {
  body:has(.chat-page) #page-container {
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
@media (max-width: 799px) {
  body:has(.chat-page) {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  body:has(.chat-page) #page-container {
    height: 100%;
    overflow: hidden;
  }
  body:has(.chat-page) #content-body {
    height: 100%;
  }
}

.chat-page ::-webkit-scrollbar {
  width: 14px;
  background-color: transparent !important;
}
.chat-page ::-webkit-scrollbar-track {
  background-color: transparent;
}
.chat-page ::-webkit-scrollbar-thumb {
  background-color: #c1c9cc;
  border-radius: 14px;
  border: 4px solid transparent;
  background-clip: content-box;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.chat-page ::-webkit-scrollbar-thumb:hover {
  background-color: #9aa6ab;
}
.chat-page .chat-input::-webkit-scrollbar {
  width: 20px;
}
.chat-page .chat-input::-webkit-scrollbar-thumb {
  border: 8px solid transparent;
}
.chat-page .chat-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  width: 100%;
  background: transparent;
  overflow: hidden;
}
.chat-page .chat-sidebar {
  border-right: 1px solid #dce5ee;
  padding-bottom: 0 !important;
  border-bottom: 0;
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
}
.chat-page .chat-sidebar-content {
  margin-bottom: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  overflow-y: auto;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 0;
  width: 100%;
}
.chat-page .chat-search-container {
  padding: 12px;
  border-bottom: 1px solid #dce5ee;
}
.chat-page #search-form {
  float: inherit;
}
.chat-page .status-section-title {
  cursor: pointer;
  margin: 12px 12px 8px;
}
.chat-page .status-section-title h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #527291;
  font-weight: 600;
}
.chat-page .status-section-title hr {
  margin: 8px 0 0;
  border-color: #dce5ee;
}
.chat-page .status-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.chat-page .status-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 8px;
  margin: 0 8px;
  cursor: pointer;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.chat-page .status-row:hover {
  background-color: #f2f2f2;
}
.chat-page .status-row.selected {
  background-color: #e7f3ff;
}
.chat-page .status-container {
  position: relative;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.chat-page .status-pic {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-page .status-pic.lobby-icon {
  border-radius: 0;
}
.chat-page .status-circle {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.chat-page .status-circle.online {
  background-color: #31a24c;
}
.chat-page .status-circle.offline {
  background-color: #bcc0c4;
}
.chat-page svg .status-circle {
  cx: 32px;
  cy: 32px;
  r: 5px;
  stroke: white;
  stroke-width: 2;
}
.chat-page .status-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
  gap: 2px;
}
.chat-page .status-username {
  font-weight: 600;
  font-size: 0.95rem;
}
.chat-page .status-last-message {
  color: #527291;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-page .wrapline {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-page .unread-count {
  color: #ffffff;
  background-color: #2f5680;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 0 6px;
}
.chat-page .setting-button,
.chat-page .user-setting-button {
  border-radius: 50%;
  -webkit-transition: background-color 0.15s ease, opacity 0.15s ease;
  -moz-transition: background-color 0.15s ease, opacity 0.15s ease;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.chat-page .setting-button:hover,
.chat-page .user-setting-button:hover {
  background-color: #dce5ee;
}
.chat-page .setting-button {
  opacity: 0;
}
.chat-page .user-setting-button {
  opacity: 1;
}
.chat-page .status-row:hover .setting-button {
  opacity: 1;
}
.chat-page .setting-wrapper {
  position: relative;
  margin-right: 8px;
}
.chat-page .setting-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 140px;
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  right: 0;
  top: 100%;
  overflow: hidden;
}
.chat-page .setting-content a {
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: #050505;
  -webkit-transition: background-color 0.1s ease;
  -moz-transition: background-color 0.1s ease;
  transition: background-color 0.1s ease;
}
.chat-page .setting-content a:hover {
  background-color: #f2f2f2;
}
.chat-page .setting-content a.red {
  color: #e41e3f;
}
.chat-page .setting-content a.green {
  color: #31a24c;
}
.chat-page .chat-area {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
  background: rgba(255, 255, 255, 0.85);
}
.chat-page .chat-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #dce5ee;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}
.chat-page .chat-header-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  gap: 12px;
}
.chat-page .chat-header-avatar {
  position: relative;
  height: 40px;
  width: 40px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.chat-page .chat-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-page .info-circle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.chat-page .info-circle.online {
  background-color: #31a24c;
}
.chat-page .info-circle.offline {
  background-color: #bcc0c4;
}
.chat-page svg .info-circle {
  cx: 6px;
  cy: 6px;
  r: 5px;
  stroke: white;
  stroke-width: 2;
}
.chat-page .info-name {
  font-size: 1.1rem;
  font-weight: 600;
}
.chat-page .info-name a {
  color: inherit;
  text-decoration: none;
}
.chat-page .info-name a:hover {
  text-decoration: underline;
}
.chat-page .active-span {
  color: #527291;
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: 12px;
}
.chat-page .active-span-mobile {
  display: none;
}
.chat-page .back-button {
  display: none;
  margin-right: 12px;
  font-size: 1.25rem;
  color: #2f5680;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.chat-page .back-button:hover {
  background-color: #f2f2f2;
}
.chat-page .chat-box {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  padding-bottom: 40px;
}
.chat-page .chat-log {
  padding: 0;
  margin: 0;
  list-style: none;
}
.chat-page .chat-loader {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: 1.5rem;
  color: #527291;
}
.chat-page .chat-empty-message {
  text-align: center;
  color: #527291;
  padding: 40px 20px;
  font-size: 0.95rem;
}
.chat-page .has_next,
.chat-page .num-pages {
  display: none;
}
.chat-page .message {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
  -webkit-animation: messageSlideIn 0.2s ease-out;
     -moz-animation: messageSlideIn 0.2s ease-out;
          animation: messageSlideIn 0.2s ease-out;
}
.chat-page .message.has-open-actions {
  position: relative;
  z-index: 140;
  isolation: isolate;
}
.chat-page .message.has-open-actions .message-header {
  position: relative;
  z-index: 1;
}
.chat-page .message.has-open-actions .message-bubble-wrapper,
.chat-page .message.has-open-actions .body-block {
  position: relative;
  z-index: 2;
}
.chat-page .message.grouped .message-avatar {
  visibility: hidden;
}
.chat-page .message.grouped .message-header {
  display: none;
}
.chat-page .message.group-start {
  margin-top: 12px;
}
.chat-page .message-avatar {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  width: 32px;
}
.chat-page .message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-page .message-content-wrapper {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.chat-page .message-header {
  margin-bottom: 4px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  gap: 8px;
}
.chat-page .message-header a {
  font-size: 0.9rem;
}
.chat-page .message-header .message-time {
  font-size: 0.75rem;
  color: #527291;
}
.chat-page .message-bubble-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  position: relative;
}
.chat-page .message-bubble-wrapper:hover .message-actions, .chat-page .message-bubble-wrapper:focus-within .message-actions {
  opacity: 1;
}
.chat-page .message-bubble,
.chat-page .message-text {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 70%;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 0.95rem;
}
.chat-page .message-bubble p,
.chat-page .message-text p {
  margin: 0;
}
.chat-page .message-bubble img,
.chat-page .message-text img {
  max-height: 200px;
  border-radius: 8px;
}
.chat-page .message-bubble pre,
.chat-page .message-text pre {
  margin: 4px 0;
  padding: 8px;
  border-radius: 8px;
  overflow-x: auto;
}
.chat-page .message-bubble-other,
.chat-page .message-text-other {
  background-color: #f1f5f9;
  color: #050505;
}
.chat-page .message-bubble-self,
.chat-page .message-text-myself {
  background-color: #2f5680;
  color: #ffffff;
}
.chat-page .message-bubble-self a,
.chat-page .message-text-myself a {
  color: #ffffff;
  text-decoration: underline;
}
.chat-page .message-actions {
  opacity: 0;
  -webkit-transition: opacity 0.15s ease;
  -moz-transition: opacity 0.15s ease;
  transition: opacity 0.15s ease;
  position: relative;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.chat-page .message-actions.is-open {
  opacity: 1;
  z-index: 130;
}
.chat-page .message-actions.is-open .message-actions-menu {
  display: block;
}
.chat-page .message-actions-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #527291;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  cursor: pointer;
  padding: 0;
}
.chat-page .message-actions-toggle:hover, .chat-page .message-actions-toggle:focus {
  background: #eef2f7;
  color: #0f2a44;
  outline: none;
}
.chat-page .message-actions-menu {
  display: none;
  position: absolute;
  left: -moz-calc(100% + 4px);
  left: calc(100% + 4px);
  right: auto;
  bottom: 50%;
  -webkit-transform: translateY(50%);
     -moz-transform: translateY(50%);
          transform: translateY(50%);
  min-width: 120px;
  padding: 4px 0;
  background: #fff;
  background-color: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
  z-index: 1000;
}
.chat-page .message-actions-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f2a44;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.chat-page .message-actions-menu button:hover, .chat-page .message-actions-menu button:focus {
  background: #eef2f7;
  outline: none;
}
.chat-page .message-actions-menu .chat_mute {
  color: #dc2626;
}
.chat-page .big-emoji {
  font-size: 1.3em;
}
.chat-page .profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-page .user-time {
  margin-bottom: 4px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  gap: 8px;
}
.chat-page .user-time a {
  font-size: 0.9rem;
}
.chat-page .user-time .time {
  font-size: 0.75rem;
  color: #527291;
}
.chat-page .body-block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
}
.chat-page .body-block:hover .message-actions, .chat-page .body-block:focus-within .message-actions {
  opacity: 1;
}
.chat-page .chat-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1500;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 16px;
}
.chat-page .chat-modal-backdrop.is-open {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.chat-page .chat-modal {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 20px 48px -12px rgba(10, 28, 46, 0.35);
          box-shadow: 0 20px 48px -12px rgba(10, 28, 46, 0.35);
  padding: 16px;
}
.chat-page .chat-modal h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.chat-page .chat-modal label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.chat-page .chat-modal textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  resize: vertical;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  background: #fff;
  color: #0f2a44;
  padding: 8px;
  font: inherit;
}
.chat-page .chat-modal-summary {
  color: #527291;
  margin: 0 0 12px;
}
.chat-page .chat-mute-type-row {
  margin-bottom: 12px;
}
.chat-page .chat-mute-type-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.chat-page .chat-mute-type-options {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 8px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.chat-page .chat-mute-type-options label {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  background: #eef2f7;
  font-weight: 500;
  cursor: pointer;
}
.chat-page .chat-mute-type-options input {
  margin: 0;
}
.chat-page .chat-modal-error {
  color: #dc2626;
  min-height: 1.2em;
  margin: 6px 0 0;
}
.chat-page .chat-modal-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.chat-page .chat-input-area,
.chat-page #chat-input-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #dce5ee;
}
.chat-page .chat-disabled-notice {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  color: #527291;
  font-size: 0.9em;
  font-style: italic;
  padding: 12px;
}
.chat-page .chat-input-wrapper {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  border: 1px solid #dce5ee;
  border-radius: 22px;
  background: #eef2f7;
  -webkit-transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
  -moz-transition: border-color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
  min-width: 0;
}
.chat-page .chat-input-wrapper:focus-within {
  border-color: #2f5680;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
          box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}
.chat-page .chat-input,
.chat-page #chat-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 7px 4px 7px 14px;
  font-size: 0.95rem;
  border: none;
  border-radius: 22px 0 0 22px;
  background: transparent;
  color: inherit;
  resize: none;
  max-height: 150px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
  min-width: 0;
}
.chat-page .chat-input:focus,
.chat-page #chat-input:focus {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.chat-page .chat-input::-webkit-input-placeholder, .chat-page #chat-input::-webkit-input-placeholder {
  color: #527291;
}
.chat-page .chat-input::-moz-placeholder, .chat-page #chat-input::-moz-placeholder {
  color: #527291;
}
.chat-page .chat-input:-ms-input-placeholder, .chat-page #chat-input:-ms-input-placeholder {
  color: #527291;
}
.chat-page .chat-input::placeholder,
.chat-page #chat-input::placeholder {
  color: #527291;
}
.chat-page .chat-emoji-btn,
.chat-page #emoji-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  cursor: pointer;
  border: none;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background: transparent;
  color: #527291;
  font-size: 1.2rem;
  margin: 2px 4px 2px 0;
  -webkit-transition: color 0.15s ease;
  -moz-transition: color 0.15s ease;
  transition: color 0.15s ease;
}
.chat-page .chat-emoji-btn:hover,
.chat-page #emoji-button:hover {
  color: #2f5680;
}
.chat-page .chat-submit-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: background-color 0.15s ease, -webkit-transform 0.1s ease;
  transition: background-color 0.15s ease, -webkit-transform 0.1s ease;
  -moz-transition: background-color 0.15s ease, transform 0.1s ease, -moz-transform 0.1s ease;
  transition: background-color 0.15s ease, transform 0.1s ease;
  transition: background-color 0.15s ease, transform 0.1s ease, -webkit-transform 0.1s ease, -moz-transform 0.1s ease;
  border: none;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background: #2f5680;
  color: #ffffff;
  font-size: 0.9rem;
}
.chat-page .chat-submit-btn:hover {
  background: #0073e6;
  -webkit-transform: scale(1.05);
     -moz-transform: scale(1.05);
          transform: scale(1.05);
}
.chat-page .chat-submit-btn:active {
  -webkit-transform: scale(0.95);
     -moz-transform: scale(0.95);
          transform: scale(0.95);
}
.chat-page #chat-input-container.is-muted .chat-input-wrapper {
  background: #eef2f7;
  border-color: #dce5ee;
  -webkit-box-shadow: none;
          box-shadow: none;
  cursor: not-allowed;
}
.chat-page #chat-input-container.is-muted #chat-input {
  color: #527291;
  cursor: not-allowed;
}
.chat-page #chat-input-container.is-muted #emoji-button,
.chat-page #chat-input-container.is-muted .chat-submit-btn {
  cursor: not-allowed;
  opacity: 0.55;
  -webkit-transform: none;
     -moz-transform: none;
          transform: none;
}
.chat-page #chat-input-container.is-muted #emoji-button:hover, .chat-page #chat-input-container.is-muted #emoji-button:active,
.chat-page #chat-input-container.is-muted .chat-submit-btn:hover,
.chat-page #chat-input-container.is-muted .chat-submit-btn:active {
  -webkit-transform: none;
     -moz-transform: none;
          transform: none;
}
.chat-page #chat-input-container.is-muted .chat-submit-btn {
  background: #dce5ee;
}
.chat-page #chat-input-container.is-muted #emoji-button:hover {
  color: #527291;
}
.chat-page #chat-input-container.is-muted .chat-submit-btn:hover {
  background: #dce5ee;
}
.chat-page .chat-input-icon {
  border: none;
  cursor: pointer;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.chat-page .emoji-tooltip {
  position: absolute;
  z-index: 1000;
  display: none;
}
.chat-page .emoji-tooltip.shown {
  display: block;
}
.chat-page .tooltip {
  position: absolute;
  z-index: 1000;
}
.chat-page .tooltip:not(.shown) {
  display: none;
}
.chat-page emoji-picker {
  --emoji-size: 1.25rem;
  --border-radius: 12px;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.chat-page #new-messages-bubble {
  position: -webkit-sticky;
  position: sticky;
  bottom: 8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
          transform: translateX(-50%);
  background-color: #193b5c;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 50;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  -webkit-transition: opacity 0.2s ease;
  -moz-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}
.chat-page #new-messages-bubble:hover {
  opacity: 0.9;
}
@-webkit-keyframes messageSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-moz-keyframes messageSlideIn {
  from {
    opacity: 0;
    -moz-transform: translateY(10px);
         transform: translateY(10px);
  }
  to {
    opacity: 1;
    -moz-transform: translateY(0);
         transform: translateY(0);
  }
}
@keyframes messageSlideIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
       -moz-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.chat-page .user-search-image {
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.chat-page .user-search-name {
  vertical-align: middle;
}
.chat-page .user-redirect {
  float: right;
  padding: 4px 8px;
  color: #527291;
}
.chat-page .user-redirect:hover {
  color: #2f5680;
}
@media (min-width: 800px) {
  .chat-page .chat-container {
    height: -moz-calc(100vh - 56px);
    height: calc(100vh - 56px);
    border: 1px solid #dce5ee;
    border-bottom: 0;
  }
  .chat-page .chat-sidebar {
    min-width: 320px;
    max-width: 320px;
  }
  .chat-page .chat-area {
    min-width: 0;
  }
  .chat-page #chat-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    width: 100%;
    height: -moz-calc(100vh - 56px);
    height: calc(100vh - 56px);
    border: 1px solid #dce5ee;
    border-bottom: 0;
  }
  .chat-page #chat-online {
    margin: 0;
    min-width: 320px;
    max-width: 320px;
  }
  .chat-page #chat-area {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
       -moz-box-flex: 1;
            flex-grow: 1;
    min-width: 0;
  }
  .chat-page #chat-input-container {
    padding-left: 16px;
  }
  .chat-page .back-button {
    display: none;
  }
}
@media (max-width: 799px) {
  .chat-page .chat-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    height: -moz-calc(100vh - 44px);
    height: calc(100vh - 44px);
    height: -moz-calc(100dvh - 44px);
    height: calc(100dvh - 44px);
  }
  .chat-page .chat-sidebar {
    width: 100%;
    max-width: none;
    border-right: none;
    border-bottom: none;
    height: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
            flex: 1;
  }
  .chat-page .chat-area {
    display: none;
    height: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
            flex: 1;
    max-height: none;
  }
  .chat-page .chat-area.mobile-visible {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -moz-box !important;
    display: flex !important;
    height: 100%;
  }
  .chat-page .chat-sidebar.mobile-hidden {
    display: none !important;
  }
  .chat-page .status-row {
    padding: 10px 8px;
    margin: 0 4px;
    gap: 8px;
  }
  .chat-page .status-pic {
    height: 36px;
    width: 36px;
  }
  .chat-page .status-user {
    min-width: 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
            flex: 1;
    overflow: hidden;
  }
  .chat-page .status-username {
    font-size: 0.9rem;
  }
  .chat-page .status-last-message,
  .chat-page .status_last_message {
    font-size: 0.8rem;
  }
  .chat-page .setting-wrapper {
    display: none;
  }
  .chat-page .status-row.selected .setting-wrapper {
    display: block;
  }
  .chat-page .chat-header {
    padding: 6px 8px;
    gap: 4px;
  }
  .chat-page .chat-header-avatar {
    height: 32px;
    width: 32px;
  }
  .chat-page .chat-header-user {
    gap: 8px;
    overflow: hidden;
  }
  .chat-page .info-name {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 0;
    margin-left: 8px;
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
  }
  .chat-page .info-name a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .chat-page .active-span-mobile {
    display: block;
    font-size: 0.7rem;
    color: #527291;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-page .active-span {
    display: none;
  }
  .chat-page .back-button {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    margin-right: 4px;
    padding: 6px;
    font-size: 1.1rem;
    -webkit-flex-shrink: 0;
            flex-shrink: 0;
  }
  .chat-page .user-setting-button {
    -webkit-flex-shrink: 0;
            flex-shrink: 0;
  }
  .chat-page .message {
    gap: 6px;
  }
  .chat-page .message-avatar {
    width: 28px;
  }
  .chat-page .message-avatar img {
    width: 28px;
    height: 28px;
  }
  .chat-page .message-bubble,
  .chat-page .message-text {
    max-width: 80%;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  .chat-page .message-actions {
    opacity: 1;
  }
  .chat-page .message-actions-menu {
    min-width: 110px;
    left: auto;
    right: -moz-calc(100% + 4px);
    right: calc(100% + 4px);
  }
  .chat-page .message-header a {
    font-size: 0.85rem;
  }
  .chat-page .chat-input-area,
  .chat-page #chat-input-container {
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    gap: 6px;
  }
  .chat-page .chat-input,
  .chat-page #chat-input {
    font-size: 16px;
    padding: 7px 4px 7px 14px;
    line-height: 1.2;
    max-height: 100px;
    height: auto;
  }
  .chat-page .chat-input-wrapper {
    border-radius: 20px;
  }
  .chat-page .chat-emoji-btn,
  .chat-page #emoji-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 1.1rem;
  }
  .chat-page .chat-submit-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.85rem;
  }
  .chat-page .chat-box,
  .chat-page #chat-box {
    padding: 8px;
    padding-bottom: 30px;
  }
  .chat-page #chat-area {
    display: none;
    height: 100%;
  }
  .chat-page #chat-online {
    height: 100%;
  }
  .chat-page .info-pic {
    width: 32px;
    height: 32px;
  }
  .chat-page #chat-info {
    padding: 6px 8px;
  }
}
.chat-page #chat-log {
  padding: 0;
  padding-top: 16px;
  width: 100%;
  font-size: 14px;
  list-style: none;
  margin: 0;
}
.chat-page #chat-log li {
  list-style-type: none;
  margin: 0 8px 4px;
}
.chat-page #chat-log p {
  margin: 0;
  padding-top: 2px;
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.chat-page #chat-online {
  border-right: 1px solid #dce5ee;
  padding-bottom: 0 !important;
  border-bottom: 0;
  font-size: 1rem;
}
.chat-page #chat-online-content {
  margin-bottom: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  overflow-y: auto;
  max-height: 100%;
  padding: 0;
  width: 100%;
}
.chat-page #chat-box {
  width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
  overflow-y: scroll;
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
  padding: 0 8px 14px;
}
.chat-page #chat-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  padding: 6px 12px;
}
.chat-page #loader {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80px;
}
.chat-page #search-container {
  padding: 12px;
}
.chat-page .selected-status-row {
  background-color: #e7f3ff;
}
.chat-page .status_last_message {
  color: #527291;
  font-size: 0.85rem;
}
.chat-page .info-pic {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}
.chat-page .info-name {
  margin-left: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.chat-page .info-name a {
  display: table-caption;
}
.chat-page textarea {
  resize: none;
}

.leave-organization, .leave-organization:hover {
  color: red;
}

#control-list li {
  border-bottom: 1px solid black;
}

#pending-count-box {
  float: right;
  text-align: center;
  background: red;
  color: white;
  border-radius: 3px;
  padding-left: 0.3em;
  padding-right: 0.3em;
}

.org-field-wrapper input[type=text], .org-field-wrapper textarea {
  width: 100%;
}
.org-field-wrapper .select2 {
  width: 100% !important;
}

.org-field-wrapper {
  margin-top: 0.4em;
}

.org-field-wrapper:has(> input[type=checkbox]) {
  display: contents;
}

.organization-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1em;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
          justify-content: flex-start;
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  margin-bottom: 1em;
}

.organization-card {
  background-color: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1em;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  -moz-transition: transform 0.3s, -moz-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s, -moz-transform 0.3s;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  margin-bottom: 1em;
  text-decoration: none;
  color: inherit;
}
.organization-card:hover {
  -webkit-transform: translateY(-5px);
     -moz-transform: translateY(-5px);
          transform: translateY(-5px);
  color: #193b5c;
}
.organization-card img.org-logo {
  width: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: contain;
  object-position: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background-color: #f1f5f9;
}
.organization-card .org-details {
  padding: 1em 0;
}
.organization-card .org-details span {
  display: block;
  margin-bottom: 0.5em;
}

@media (min-width: 800px) {
  .organization-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(33.33% - 1em);
       -moz-box-flex: 1;
            flex: 1 1 calc(33.33% - 1em);
    max-width: -moz-calc(33.33% - 1em);
    max-width: calc(33.33% - 1em);
  }
  .organization-card img.org-logo {
    height: 150px;
  }
}
@media (max-width: 799px) {
  .organization-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 1em);
       -moz-box-flex: 1;
            flex: 1 1 calc(50% - 1em);
    max-width: -moz-calc(50% - 1em);
    max-width: calc(50% - 1em);
  }
  .organization-card img.org-logo {
    height: 120px;
  }
}
.organization-row {
  display: block;
  padding: 0.5em;
  border-bottom: 1px #dce5ee solid;
  border-top: none;
  color: black;
  font-weight: 500;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.organization-row:hover {
  background-color: #f3f3f3;
}

.org-help-text {
  display: block;
  color: gray;
}

#search-organization {
  width: 100%;
  height: 2.3em;
}

.org-about {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #14314c;
}
.org-about .content-description {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.org-about p {
  margin: 0 0 0.5em 0;
}
.org-about p:last-child {
  margin-bottom: 0;
}
.org-about h1, .org-about h2, .org-about h3, .org-about h4, .org-about h5, .org-about h6 {
  font-size: 1em;
  margin: 0.5em 0 0.3em 0;
  font-weight: 600;
  color: #0f2a44;
}
.org-about h1:first-child, .org-about h2:first-child, .org-about h3:first-child, .org-about h4:first-child, .org-about h5:first-child, .org-about h6:first-child {
  margin-top: 0;
}
.org-about ul, .org-about ol {
  margin: 0.3em 0;
  padding-left: 1.5em;
}
.org-about li {
  margin-bottom: 0.2em;
}
.org-about img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 4px;
}
.org-about a {
  color: #193b5c;
}
.org-about code {
  font-size: 0.9em;
  background: #eef2f7;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
.org-about pre {
  font-size: 0.85em;
  margin: 0.5em 0;
  padding: 0.5em;
  background: #eef2f7;
  border-radius: 4px;
  overflow-x: auto;
}

.header-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.organization-image {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dce5ee;
}

.organization-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f2a44;
  margin: 0;
}

.organization-tag-edit {
  margin-left: 0.3em;
  color: #193b5c;
}
.organization-tag-edit:hover {
  color: rgb(8.6538461538, 20.4230769231, 31.8461538462);
}

.organization-tag {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.2em;
  background: -webkit-linear-gradient(315deg, #14314c, #0f2a44);
  background: -moz-linear-gradient(315deg, #14314c, #0f2a44);
  background: linear-gradient(135deg, #14314c, #0f2a44);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.organization-tag a {
  color: white;
  text-decoration: none;
}
.organization-tag a:hover {
  text-decoration: underline;
}
.organization-tag .user-img {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.organization-tag .organization-edit {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.3rem;
  font-size: 0.75rem;
  -webkit-transition: color 0.15s ease;
  -moz-transition: color 0.15s ease;
  transition: color 0.15s ease;
}
.organization-tag .organization-edit:hover {
  color: white;
}

.org-cover-image {
  height: 8rem;
  max-height: 8rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  margin: -1.5rem -1.5rem 0 -1.5rem;
  width: -moz-calc(100% + 3rem);
  width: calc(100% + 3rem);
  position: relative;
}
.org-cover-image img {
  width: 100%;
  height: 8rem;
  max-height: 8rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
.org-cover-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(transparent));
  background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), transparent);
  background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5), transparent);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.org-header {
  position: relative;
  background: -webkit-linear-gradient(315deg, #f1f5f9 0%, #e5f7f9 100%);
  background: -moz-linear-gradient(315deg, #f1f5f9 0%, #e5f7f9 100%);
  background: linear-gradient(135deg, #f1f5f9 0%, #e5f7f9 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dce5ee;
  overflow: hidden;
}
.org-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: -webkit-gradient(linear, left top, right top, from(#5fe0e5), color-stop(50%, #2bb8be), to(#2f5680));
  background: -webkit-linear-gradient(left, #5fe0e5 0%, #2bb8be 50%, #2f5680 100%);
  background: -moz-linear-gradient(left, #5fe0e5 0%, #2bb8be 50%, #2f5680 100%);
  background: linear-gradient(90deg, #5fe0e5 0%, #2bb8be 50%, #2f5680 100%);
}
.org-header:has(.org-cover-image) {
  background: #eef2f7;
  padding-top: 0;
}

.org-header-main {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  padding: 1rem 0 0 0;
}
.org-header-main.has-cover {
  padding-top: 1rem;
}

.org-header-left {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1rem;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}

.org-logo-large {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid white;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.org-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: -webkit-linear-gradient(315deg, #193b5c, rgb(14.1025641026, 33.2820512821, 51.8974358974));
  background: -moz-linear-gradient(315deg, #193b5c, rgb(14.1025641026, 33.2820512821, 51.8974358974));
  background: linear-gradient(135deg, #193b5c, rgb(14.1025641026, 33.2820512821, 51.8974358974));
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  border: 3px solid white;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.org-logo-placeholder i {
  font-size: 2rem;
  color: white;
}

.org-header-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}

.org-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #0f2a44;
  line-height: 1.2;
  word-wrap: break-word;
}

.org-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.75rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 0.75rem;
}

.org-badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.org-badge i {
  font-size: 0.7rem;
}

.org-badge-public {
  background: rgba(255, 255, 255, 0.9);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.org-badge-private {
  background: rgba(255, 255, 255, 0.9);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.org-badge-official {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.org-stat {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f2a44;
}
.org-stat i {
  font-size: 0.75rem;
  color: #527291;
}

.org-member-preview {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.org-member-preview a {
  display: block;
  margin-right: -8px;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -moz-transition: transform 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
}
.org-member-preview a:hover {
  -webkit-transform: scale(1.1);
     -moz-transform: scale(1.1);
          transform: scale(1.1);
  z-index: 1;
}
.org-member-preview img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.org-member-more {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-align-content: center;
          align-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid white;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0f2a44;
  margin-left: 8px;
}
.org-member-more:hover {
  background: rgb(223.15, 232.25, 241.35);
}

.org-header-actions {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.org-join-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #193b5c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: background 0.2s, -webkit-transform 0.2s;
  transition: background 0.2s, -webkit-transform 0.2s;
  -moz-transition: background 0.2s, transform 0.2s, -moz-transform 0.2s;
  transition: background 0.2s, transform 0.2s;
  transition: background 0.2s, transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
  text-decoration: none;
}
.org-join-btn:hover {
  background: rgb(14.1025641026, 33.2820512821, 51.8974358974);
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
  color: white;
}
.org-join-btn i {
  font-size: 0.85rem;
}

.org-request-btn {
  background: rgb(35.8974358974, 84.7179487179, 132.1025641026);
}

.org-invite-join {
  max-width: 400px;
  margin: 3em auto;
  text-align: center;
}
.org-invite-join .org-invite-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1em;
}
.org-invite-join .org-invite-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  font-size: 2em;
}
.org-invite-join h2 {
  margin: 0 0 0.5em;
}
.org-invite-join .org-invite-actions {
  margin-top: 1.5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.75em;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.org-invite-join .org-cancel-btn {
  background: #dce5ee;
}
.org-invite-join .org-cancel-btn:hover {
  background: rgb(185.6730769231, 203.5, 221.3269230769);
  color: white;
}

.org-joined-badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.org-joined-badge i {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .org-cover-image {
    height: 6rem;
    max-height: 6rem;
    margin: -1rem -1rem 0.75rem -1rem;
    width: -moz-calc(100% + 2rem);
    width: calc(100% + 2rem);
  }
  .org-cover-image img {
    height: 6rem;
    max-height: 6rem;
  }
  .org-header {
    padding: 1rem;
  }
  .org-header-main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
  }
  .org-header-left {
    width: 100%;
  }
  .org-logo-large,
  .org-logo-placeholder {
    width: 60px;
    height: 60px;
  }
  .org-logo-large i,
  .org-logo-placeholder i {
    font-size: 1.5rem;
  }
  .org-name {
    font-size: 1.25rem;
  }
  .org-meta {
    gap: 0.5rem;
  }
  .org-stat {
    font-size: 0.8rem;
  }
  .org-header-actions {
    width: 100%;
  }
  .org-header-actions form, .org-header-actions a {
    width: 100%;
  }
  .org-header-actions .org-join-btn {
    width: 100%;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
}
.post-composer {
  background: white;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 0.75em;
  margin-bottom: 1em;
}
.post-composer .composer-trigger {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75em;
  text-decoration: none;
  color: inherit;
  padding: 0.5em;
  border-radius: 8px;
  background: #eef2f7;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  transition: background 0.2s;
}
.post-composer .composer-trigger:hover {
  background: rgb(220.66, 228.74, 238.84);
}
.post-composer .composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.post-composer .composer-placeholder {
  color: #527291;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.post-composer .composer-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.8em;
  background: #193b5c;
  color: white;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.moderation-log-table {
  overflow-x: auto;
}
.moderation-log-table .table td,
.moderation-log-table .table th {
  word-break: break-word;
  overflow-wrap: break-word;
}
.moderation-log-table .badge {
  white-space: nowrap;
  font-size: 0.85em;
}

.expandable-text .text-full {
  display: none;
}
.expandable-text .toggle-text {
  cursor: pointer;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .post-composer {
    padding: 0.5em;
  }
  .post-composer .composer-trigger {
    padding: 0.4em;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .post-composer .composer-avatar {
    width: 32px;
    height: 32px;
  }
  .post-composer .composer-placeholder {
    font-size: 0.85em;
  }
  .post-composer .composer-btn {
    font-size: 0.8em;
    padding: 0.3em 0.6em;
  }
}
.org-form-card {
  background: white;
  padding: 1.5em 2em;
  border-radius: 1em;
}

.kick-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #8aa5c0;
  background: transparent;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
.kick-btn:hover {
  background: #fdecec;
  color: #dc2626;
  text-decoration: none;
}
.kick-btn:focus-visible {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
}

.org-admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  color: #193b5c;
  font-size: 11px;
  font-weight: 600;
}

#container > aside .sidebox .filter-toggle {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin: 0 -6px 12px;
  padding: 6px;
  border-radius: 6px;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
#container > aside .sidebox .filter-toggle:hover {
  background: #f1f5f9;
}
#container > aside .sidebox .filter-toggle label {
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  color: #193b5c;
}
#container > aside .sidebox .filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  margin-bottom: 5px;
}
#container > aside .sidebox .filter-select2 {
  margin-bottom: 12px;
}
#container > aside .sidebox select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #b6c7da;
  border-radius: 6px;
  background: #fff;
  color: #0f2a44;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  -webkit-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: color 100ms cubic-bezier(0.22, 1, 0.36, 1), background-color 100ms cubic-bezier(0.22, 1, 0.36, 1), border-color 100ms cubic-bezier(0.22, 1, 0.36, 1);
}
#container > aside .sidebox select:focus {
  outline: none;
  border-color: #2bb8be;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
}
#container > aside .sidebox .filter-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
}

.ticket-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.ticket-container #content > h2:first-child small {
  color: #8aa5c0;
  font-size: 0.9em;
  margin-left: 0.3em;
}
.ticket-container #content > h2:first-child .status, .ticket-container #content > h2:first-child .title {
  display: inline;
}
.ticket-container #content > h2:first-child .fa-check-circle {
  color: #00a900;
}
.ticket-container #content > h2:first-child .fa-exclamation-circle {
  color: darkred;
}
.ticket-container .ticket-container {
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
     -moz-box-orient: horizontal;
     -moz-box-direction: normal;
          flex-direction: row;
  -webkit-flex-wrap: wrap-reverse;
          flex-wrap: wrap-reverse;
  max-width: 1000px;
}
.ticket-container .ticket-sidebar {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 10px 0 0 10px;
  min-width: 150px;
  max-width: 200px;
}
.ticket-container .ticket-info {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
}
.ticket-container .ticket-messages {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.ticket-container .info-box {
  margin: 5px 0 10px;
  border: 1px #8aa5c0 solid;
  border-radius: 5px;
}
.ticket-container .info-title {
  padding: 2px 5px;
  font-weight: 600;
  border-bottom: 1px #8aa5c0 solid;
  background: #f1f5f9;
  border-radius: 5px 5px 0 0;
}
.ticket-container .info-data {
  padding: 2px 5px;
}
.ticket-container .info-empty {
  color: #8aa5c0;
  font-style: italic;
}
.ticket-container .close-ticket {
  display: block;
  width: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(#4bad00), to(#278811));
  background: -webkit-linear-gradient(top, #4bad00 0%, #278811 100%);
  background: -moz-linear-gradient(top, #4bad00 0%, #278811 100%);
  background: linear-gradient(to bottom, #4bad00 0%, #278811 100%);
  border-color: #24710e;
  font-weight: 600;
}
.ticket-container .close-ticket:hover {
  background: #24710e;
}
.ticket-container .open-ticket {
  display: block;
  width: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(#ff130f), to(#b03d17));
  background: -webkit-linear-gradient(top, #ff130f, #b03d17);
  background: -moz-linear-gradient(top, #ff130f, #b03d17);
  background: linear-gradient(to bottom, #ff130f, #b03d17);
  border-color: #853011;
  font-weight: 600;
}
.ticket-container .open-ticket:hover {
  background: #853011;
}
.ticket-container a.edit-notes {
  float: right;
}
.ticket-container #ticket-notes .info-real :first-child {
  margin-top: 0;
}
.ticket-container #ticket-notes .info-real :last-child {
  margin-bottom: 0;
}
.ticket-container .message {
  margin-top: -40px;
  padding-top: 55px;
}
.ticket-container .message .username {
  text-align: center;
}
.ticket-container .message .gravatar {
  width: 40px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}
.ticket-container .message .message-date, .ticket-container .message .message-time {
  display: inline-block;
}
.ticket-container .message .detail {
  border: 1px #8aa5c0 solid;
  border-radius: 5px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 200px;
}
.ticket-container .message .header {
  background: #f1f5f9;
  color: #777;
  border-bottom: 1px solid #8aa5c0;
  border-radius: 5px 5px 0 0;
  padding: 2px 7px;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  width: -webkit-fill-available;
}
.ticket-container .message .send-time {
  text-align: right;
}
.ticket-container .message .content {
  padding: 7px;
}
.ticket-container .new-message .detail {
  padding: 8px 10px;
}
.ticket-container .new-message .submit, .ticket-container #edit-notes .submit {
  margin: 10px 0 0 auto;
}
.ticket-container .user-container {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
}
.ticket-container .user-container .username {
  padding-left: 0.5em;
  padding-top: 1.65em;
}

@media (max-width: 799px) {
  .ticket-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -webkit-flex-direction: column-reverse;
       -moz-box-orient: vertical;
       -moz-box-direction: reverse;
            flex-direction: column-reverse;
  }
}
.ticket-item {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.ticket-item .ticket-status {
  margin-right: 16px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  min-width: 60px;
  height: 30px;
  border-radius: 6px;
}
.ticket-item .ticket-status.open {
  background-color: #f39c12;
}
.ticket-item .ticket-status.closed {
  background-color: #27ae60;
}
.ticket-item .ticket-status span {
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticket-item .ticket-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.ticket-item .ticket-content .ticket-title {
  margin-bottom: 2px;
}
.ticket-item .ticket-content .ticket-title a {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
  line-height: 1.4;
}
.ticket-item .ticket-content .ticket-link {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}
.ticket-item .ticket-content .ticket-link .fa {
  margin-right: 4px;
  font-size: 11px;
}
.ticket-item .ticket-content .ticket-link a {
  color: #7f8c8d;
  text-decoration: none;
}
.ticket-item .ticket-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 16px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  text-align: right;
}
.ticket-item .ticket-meta .ticket-user {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
}
.ticket-item .ticket-meta .ticket-user span {
  color: #34495e;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.ticket-item .ticket-meta .ticket-time {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
  min-width: 80px;
}

.wmd-panel {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.wmd-button-bar {
  width: 100%;
}

.wmd-input {
  height: 300px;
  width: 100%;
  background: #fff;
  border: 1px solid DarkGray;
  font-family: var(--md-code-font-family), JetBrains Mono, ui-monospace, SFMono-Regular, Fira Code, monospace;
  font-size: 15px;
}

.wmd-preview {
  background: none;
  word-wrap: break-word;
}

.wmd-button-row {
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex; /* Display as a flex container */
  -webkit-flex-wrap: nowrap;
          flex-wrap: nowrap; /* Prevent items from wrapping */
  overflow-x: auto;
  white-space: nowrap;
  gap: 3px;
}

.wmd-button {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  list-style: none;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: center;
  border-radius: 3px;
  cursor: pointer;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
}

.wmd-bold-button {
  background-image: url("/static/pagedown/resources/bold.svg");
}

.wmd-italic-button {
  background-image: url("/static/pagedown/resources/italic.svg");
}

.wmd-latex-button {
  background-image: url("/static/pagedown/resources/latex.svg");
}

.wmd-latex-button-display {
  background-image: url("/static/pagedown/resources/latex-display.svg");
}

.wmd-link-button {
  background-image: url("/static/pagedown/resources/link.svg");
}

.wmd-user-reference-button {
  background-image: url("/static/pagedown/resources/user.svg");
}

.wmd-quote-button {
  background-image: url("/static/pagedown/resources/blockquote.svg");
}

.wmd-code-button {
  background-image: url("/static/pagedown/resources/code.svg");
}

.wmd-image-button {
  background-image: url("/static/pagedown/resources/image.svg");
}

.wmd-olist-button {
  background-image: url("/static/pagedown/resources/olist.svg");
  background-size: 18px;
}

.wmd-ulist-button {
  background-image: url("/static/pagedown/resources/ulist.svg");
  background-size: 18px;
}

.wmd-heading-button {
  background-image: url("/static/pagedown/resources/heading.svg");
}

.wmd-hr-button {
  background-image: url("/static/pagedown/resources/hr.svg");
}

.wmd-undo-button {
  background-image: url("/static/pagedown/resources/undo.svg");
  background-size: 18px;
}

.wmd-redo-button {
  background-image: url("/static/pagedown/resources/redo.svg");
  background-size: 18px;
}

.wmd-admonition-button {
  background-image: url("/static/pagedown/resources/admonition.svg");
}

.wmd-spoiler-button {
  background-image: url("/static/pagedown/resources/spoiler.svg");
}

.wmd-button-active:hover {
  background-color: lightgray;
}

.wmd-button-inactive {
  -webkit-filter: invert(88%) sepia(1%) saturate(0%) hue-rotate(278deg) brightness(98%) contrast(91%);
          filter: invert(88%) sepia(1%) saturate(0%) hue-rotate(278deg) brightness(98%) contrast(91%);
}

.wmd-spacer {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  width: 10px;
}

.wmd-prompt-background {
  background-color: Black;
}

.wmd-prompt-dialog {
  border: 1px solid #999999;
  background-color: #f1f5f9;
}

.wmd-prompt-dialog > div {
  font-size: 0.8em;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

.wmd-prompt-dialog > form > input[type=text] {
  border: 1px solid #999999;
  color: black;
}

.wmd-prompt-dialog > form > input[type=button] {
  border: 1px solid #888888;
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.8em;
  font-weight: bold;
}

.wmd-wrapper {
  padding-right: 0 !important;
}

.wmd-preview {
  margin-top: 15px;
  padding: 7px;
  background: white;
  line-height: 1.5em;
  font-size: 1em;
  border: 1px solid #a9a9a9;
  border-radius: 5px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.wmd-preview:empty {
  display: none;
}

/* Extra styles to allow for image upload */
.pagedown-image-upload {
  display: none;
  z-index: 10001;
  position: fixed;
  background: white;
  top: 50%;
  left: 50%;
  padding: 10px;
  width: 400px;
  max-width: 90%;
  -webkit-transform: translate3d(-50%, -50%, 0);
     -moz-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
  -webkit-box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.5);
          box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.5);
}

.pagedown-image-upload .submit-row {
  margin: 10px 0 0 0;
}

.pagedown-image-upload.show {
  display: block;
}

.pagedown-image-upload .submit-loading {
  display: none;
  vertical-align: middle;
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #79aec8; /* Blue */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  -webkit-animation: spin 1s linear infinite;
     -moz-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
}

.pagedown-image-upload .submit-loading.show {
  display: inline-block;
}

.pagedown-image-upload .submit-input {
  display: none;
}

.pagedown-image-upload .submit-input.show {
  display: inline-block;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  0% {
    -moz-transform: rotate(0deg);
         transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
         transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
       -moz-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
       -moz-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.pagedown-image-upload .submit-input {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  min-width: inherit;
  float: right;
}
.pagedown-image-upload .deletelink-box {
  position: absolute;
  top: 2px;
  right: 1em;
}

/* Minimal mode styles - YouTube-like comment input */
.wmd-wrapper-minimal .minimal-editor-container {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0;
}
.wmd-wrapper-minimal .minimal-input {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 200px;
  padding: 10px 12px;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background: transparent;
  resize: none;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  -moz-transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-y: hidden;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  font-family: inherit;
}
.wmd-wrapper-minimal .minimal-input:focus {
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.1);
  border-radius: 12px;
  outline: none;
}
.wmd-wrapper-minimal .minimal-input::-webkit-input-placeholder {
  color: #909090;
}
.wmd-wrapper-minimal .minimal-input::-moz-placeholder {
  color: #909090;
}
.wmd-wrapper-minimal .minimal-input:-ms-input-placeholder {
  color: #909090;
}
.wmd-wrapper-minimal .minimal-input::placeholder {
  color: #909090;
}
.wmd-wrapper-minimal .minimal-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.wmd-wrapper-minimal.has-focus .minimal-actions, .wmd-wrapper-minimal.has-content .minimal-actions {
  opacity: 1;
  max-height: 50px;
}
.wmd-wrapper-minimal .minimal-cancel-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #0f2a44;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.wmd-wrapper-minimal .minimal-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.wmd-wrapper-minimal .minimal-submit-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  background: #dce5ee;
  color: #606060;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: not-allowed;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.wmd-wrapper-minimal .minimal-submit-btn.active {
  background: #193b5c;
  color: white;
  cursor: pointer;
}
.wmd-wrapper-minimal .minimal-submit-btn.active:hover {
  background: rgb(14.1025641026, 33.2820512821, 51.8974358974);
}
.wmd-wrapper-minimal .minimal-expand-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #606060;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.wmd-wrapper-minimal .minimal-expand-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f2a44;
}
.wmd-wrapper-minimal .minimal-expand-btn i {
  font-size: 14px;
}

/* Full mode header with toolbar and collapse button */
.full-editor-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.full-editor-header .wmd-button-bar {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.full-editor-header .full-collapse-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: #eef2f7;
  color: #0f2a44;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.full-editor-header .full-collapse-btn:hover {
  background: #193b5c;
  border-color: #193b5c;
  color: white;
}
.full-editor-header .full-collapse-btn i {
  font-size: 12px;
}

/* Full mode action buttons */
.full-editor-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dce5ee;
}
.full-editor-actions .full-cancel-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #0f2a44;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.full-editor-actions .full-cancel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.full-editor-actions .full-submit-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  background: #193b5c;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.full-editor-actions .full-submit-btn:hover {
  background: rgb(14.1025641026, 33.2820512821, 51.8974358974);
}
.full-editor-actions .full-submit-btn:disabled {
  background: #dce5ee;
  color: #606060;
  cursor: not-allowed;
}

div.dmmd-preview {
  padding: 0;
}

div.dmmd-preview-update {
  background: #dce5ee;
  color: #0f2a44;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  height: 2em;
  line-height: 2em;
}

div.dmmd-preview-content {
  padding: 0 7px;
}

div.dmmd-preview.dmmd-preview-has-content div.dmmd-preview-update {
  border-radius: 4px 4px 0 0;
}

div.dmmd-preview-has-content div.dmmd-preview-content {
  padding-bottom: 7px;
}

div.dmmd-no-button div.dmmd-preview-update {
  display: none;
}

div.dmmd-no-button div.dmmd-preview-content {
  padding-bottom: 0;
}

div.dmmd-no-button:not(.dmmd-preview-has-content) {
  display: none;
}

div.dmmd-preview-stale {
  background: -webkit-repeating-linear-gradient(135deg, #fff, #fff 10px, #f8f8f8 10px, #f8f8f8 20px);
  background: -moz-repeating-linear-gradient(135deg, #fff, #fff 10px, #f8f8f8 10px, #f8f8f8 20px);
  background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #f8f8f8 10px, #f8f8f8 20px);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.course-content-title {
  font-weight: bold;
}

.course-list {
  width: 100%;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.course-list .course-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  border: 1px solid #dce5ee;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #fff;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: -webkit-transform 0.2s ease-in-out;
  -moz-transition: transform 0.2s ease-in-out, -moz-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out, -moz-transform 0.2s ease-in-out;
}
.course-list .course-item:hover {
  -webkit-transform: translateY(-2px);
     -moz-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.course-list .course-image {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  width: 50px;
  height: 50px;
  margin-right: 20px;
  border-radius: 5px;
  overflow: hidden;
}
.course-list .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.course-list .course-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.course-list .course-name {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.lesson-list {
  list-style: none;
  padding: 0;
}
.lesson-list li:hover {
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #ffffe0;
}
.lesson-list li {
  background: #fff;
  border: 1px solid #dce5ee;
  margin-bottom: 20px;
  padding-top: 10px;
  border-radius: 5px;
  -webkit-box-shadow: 0 2px 4px #dce5ee;
          box-shadow: 0 2px 4px #dce5ee;
}
.lesson-list li.lesson-locked {
  opacity: 0.7;
  background: #eef2f7;
  cursor: not-allowed;
  padding-bottom: 10px;
}
.lesson-list li.lesson-locked:hover {
  -webkit-box-shadow: 0 2px 4px #dce5ee;
          box-shadow: 0 2px 4px #dce5ee;
  background: #eef2f7;
}
.lesson-list li.lesson-locked .lesson-lock-icon {
  color: #dc2626;
  margin-right: 0.3em;
}
.lesson-list li.lesson-locked .locked-text {
  color: #dc2626;
  font-weight: bold;
}
.lesson-list li.lesson-locked .prerequisite-info {
  font-size: 0.85em;
  color: #0f2a44;
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 0.5em;
  padding-top: 0.5em;
  border-top: 1px dashed #dce5ee;
}
.lesson-list li.lesson-locked .prerequisite-info i {
  margin-right: 0.3em;
  color: #dce5ee;
}
.lesson-list li.lesson-locked .prerequisite-info .prereq-item {
  font-style: italic;
}
.lesson-list .lesson-title {
  font-size: 1.25em;
  margin-left: 1em;
  margin-right: 1em;
  color: initial;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1em;
}
.lesson-list .lesson-title .lesson-points {
  margin-left: auto;
  font-size: 0.9em;
  -webkit-align-self: flex-end;
          align-self: flex-end;
  color: #636363;
}
.lesson-list .progress-container {
  background: #dce5ee;
  border-radius: 3px;
  height: 10px;
  width: 100%;
  margin-top: 10px;
}
.lesson-list .progress-bar {
  background: forestgreen;
  height: 10px;
  border-radius: 3px;
  line-height: 10px;
  color: white;
  text-align: right;
  font-size: smaller;
}

.course-problem-list {
  list-style-type: none;
  padding: 0;
  font-size: 15px;
}
.course-problem-list i {
  font-size: large;
}
.course-problem-list li {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px;
  border-radius: 5px;
}
.course-problem-list .problem-name {
  margin-left: 10px;
}
.course-problem-list li:hover {
  background: #dce5ee;
}
.course-problem-list .score {
  font-weight: bold;
  margin-left: auto;
}
.course-problem-list a {
  text-decoration: none;
  color: inherit;
}

.course-contest-card, .course-lesson-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  margin-top: 20px;
  padding: 15px;
  -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.course-contest-card h5, .course-lesson-card h5 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #0f2a44;
}
.course-contest-card p, .course-lesson-card p {
  margin: 5px 0;
  color: #193b5c;
}
.course-contest-card .problem-codes, .course-lesson-card .problem-codes {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  color: #527291;
  font-size: 0.9em;
}

.add-button-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
}

.inline-role-form {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
}

.inline-delete-form {
  display: inline;
}

.no-permission-text {
  color: #8aa5c0;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  margin-top: 1em;
}
.members-table th, .members-table td {
  padding: 10px;
  border: 1px solid #dce5ee;
  text-align: left;
}
.members-table th {
  background-color: #f1f5f9;
  font-weight: bold;
}
.members-table tr:nth-child(even) {
  background-color: #f1f5f9;
}
.members-table tr:hover {
  background-color: #f1f5f9;
}

.add-member-form {
  background-color: #f1f5f9;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #dce5ee;
  margin-top: 20px;
}

.form-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 15px;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-top: 1em;
}

.form-field {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 200px;
}
.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-field input, .form-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 3px;
}

.role-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}
.role-badge.role-teacher {
  background-color: #2f5680;
  color: white;
}
.role-badge.role-assistant {
  background-color: #28a745;
  color: white;
}
.role-badge.role-student {
  background-color: #527291;
  color: white;
}

.role-select {
  padding: 5px 8px;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  min-width: 100px;
}
.role-select:hover {
  border-color: #8aa5c0;
}
.role-select:focus {
  outline: none;
  border-color: #2f5680;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
          box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.no-members-text {
  text-align: center;
  color: #527291;
  margin: 40px 0;
}

.form-error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.course-detail-page .contest-name {
  font-weight: bold;
  font-size: 1.1em;
}
.course-detail-page .contest-details {
  font-size: 0.9em;
}
.course-detail-page .course-leave-form {
  float: right;
}
.course-detail-page .course-leave-form form {
  display: inline;
}
.course-detail-page .course-total-points {
  float: right;
  font-weight: normal;
}

.course-edit-page .form-header {
  margin-bottom: 0.5em;
}
.course-edit-page .form-container {
  margin-bottom: 1em;
}
.course-edit-page .form-field-wrapper {
  margin-bottom: 1em;
}
.course-edit-page .form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.edit-lessons-tabs {
  margin-bottom: 1.5em;
}

.edit-lessons-page.order-tab .prereq-description {
  color: #0f2a44;
  font-size: 0.9em;
  margin-bottom: 1em;
}
.edit-lessons-page.order-tab .order-section-title {
  margin-bottom: 15px;
}
.edit-lessons-page.order-tab .sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edit-lessons-page.order-tab .sortable-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 10px 15px;
  margin-bottom: 5px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  cursor: move;
}
.edit-lessons-page.order-tab .sortable-item:hover {
  background: #f1f5f9;
}
.edit-lessons-page.order-tab .sortable-item.ui-sortable-helper {
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.edit-lessons-page.order-tab .drag-handle {
  margin-right: 15px;
  color: #527291;
}
.edit-lessons-page.order-tab .item-order {
  min-width: 30px;
  font-weight: bold;
  color: #0f2a44;
}
.edit-lessons-page.order-tab .item-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.edit-lessons-page.order-tab .item-title a {
  color: #0f2a44;
  text-decoration: none;
}
.edit-lessons-page.order-tab .item-title a:hover {
  text-decoration: underline;
}
.edit-lessons-page.order-tab .item-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
  margin-right: 15px;
  color: #193b5c;
  font-size: 0.9em;
}
.edit-lessons-page.order-tab .item-meta .item-points {
  font-weight: 500;
  color: #0f2a44;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit {
  width: 3.5em;
  border: 1px solid #8aa5c0;
  background: #fff;
  color: #0f2a44;
  font: inherit;
  font-weight: 600;
  text-align: right;
  border-radius: 3px;
  padding: 2px 6px;
  -webkit-transition: border-color 0.15s, background-color 0.4s;
  -moz-transition: border-color 0.15s, background-color 0.4s;
  transition: border-color 0.15s, background-color 0.4s;
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit::-webkit-inner-spin-button, .edit-lessons-page.order-tab .item-meta .inline-points-edit::-webkit-outer-spin-button {
  -webkit-appearance: none;
          appearance: none;
  margin: 0;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit:hover {
  border-color: #0f2a44;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit:focus {
  border-color: #193b5c;
  outline: none;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit.saved {
  background-color: rgba(0, 200, 0, 0.15);
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit.error {
  border-color: #dc2626;
}
.edit-lessons-page.order-tab .item-meta .points-suffix {
  font-weight: 500;
}
.edit-lessons-page.order-tab .item-meta .item-visibility i {
  font-size: 1.1em;
}
.edit-lessons-page.order-tab .item-meta .item-visibility.public {
  color: green;
}
.edit-lessons-page.order-tab .item-meta .item-visibility.private {
  color: #dc2626;
}
.edit-lessons-page.order-tab .item-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
}
.edit-lessons-page.order-tab .item-actions .action-btn.small {
  padding: 4px 8px;
  font-size: 0.85em;
}
.edit-lessons-page.order-tab .save-status {
  display: none;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 0.9em;
}
.edit-lessons-page.order-tab .save-status.success {
  background: #d4edda;
  color: #155724;
}
.edit-lessons-page.order-tab .save-status.error {
  background: #f8d7da;
  color: #721c24;
}
.edit-lessons-page.prerequisites-tab .prereq-description {
  color: #0f2a44;
  font-size: 0.9em;
  margin-bottom: 1em;
}
.edit-lessons-page.prerequisites-tab .prereq-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
.edit-lessons-page.prerequisites-tab .prereq-table th, .edit-lessons-page.prerequisites-tab .prereq-table td {
  padding: 10px;
  border: 1px solid #dce5ee;
  text-align: left;
}
.edit-lessons-page.prerequisites-tab .prereq-table th {
  background-color: #eef2f7;
  font-weight: bold;
}
.edit-lessons-page.prerequisites-tab .prereq-table tr:hover:not(.add-row) {
  background-color: #eef2f7;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-arrow {
  text-align: center;
  width: 40px;
  color: #0f2a44;
}
.edit-lessons-page.prerequisites-tab .prereq-table .add-row {
  background-color: #eef2f7;
}
.edit-lessons-page.prerequisites-tab .prereq-table .add-row select, .edit-lessons-page.prerequisites-tab .prereq-table .add-row input {
  padding: 6px 8px;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  background: white;
}
.edit-lessons-page.prerequisites-tab .prereq-table .add-row select {
  width: 100%;
  max-width: 200px;
}
.edit-lessons-page.prerequisites-tab .prereq-table .delete-btn {
  color: #dc2626;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.1em;
  padding: 5px 10px;
}
.edit-lessons-page.prerequisites-tab .prereq-table .delete-btn:hover {
  opacity: 0.7;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-percentage-cell .edit-percentage {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  text-align: center;
  -webkit-transition: background-color 0.3s ease, border-color 0.3s ease;
  -moz-transition: background-color 0.3s ease, border-color 0.3s ease;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-percentage-cell .edit-percentage:focus {
  outline: none;
  border-color: #193b5c;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-percentage-cell .edit-percentage:disabled {
  background-color: #eef2f7;
  cursor: wait;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-percentage-cell .edit-percentage.edit-success {
  background-color: #d4edda;
  border-color: #28a745;
}
.edit-lessons-page.prerequisites-tab .prereq-error {
  color: #dc2626;
  margin-top: 10px;
  font-size: 0.9em;
}
.edit-lessons-page.prerequisites-tab .prereq-error i {
  margin-right: 0.3em;
}
.edit-lessons-page.prerequisites-tab .no-prereqs {
  text-align: center;
  color: #0f2a44;
  padding: 30px;
  background: #eef2f7;
  border-radius: 5px;
  margin-top: 1em;
}
.edit-lessons-page.prerequisites-tab .no-prereqs i {
  font-size: 2em;
  margin-bottom: 10px;
  display: block;
  opacity: 0.5;
}
.edit-lessons-page.prerequisites-tab .prereq-hint {
  font-style: italic;
  opacity: 0.8;
}
.edit-lessons-page.prerequisites-tab .prereq-hint i {
  margin-right: 0.3em;
}
.edit-lessons-page.prerequisites-tab .prereq-add-section {
  margin-top: 1em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px dashed #dce5ee;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #0f2a44;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section .prereq-json-textarea {
  width: 100%;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.9em;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section .prereq-json-actions {
  margin-top: 0.5em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
}
.edit-lessons-page.prerequisites-tab .prereq-refresh-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dce5ee;
}
.edit-lessons-page.prerequisites-tab .prereq-refresh-section .prereq-refresh-form {
  display: inline;
}
.edit-lessons-page.prerequisites-tab .prereq-refresh-section .prereq-refresh-hint {
  margin-left: 10px;
  font-size: 0.9em;
}

.course-list-page .course-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.course-list-page .course-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.course-list-page .course-item:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}
.course-list-page .course-image {
  width: 80px;
  height: 80px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  border-radius: 8px;
  background: -webkit-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
  background: -moz-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  color: white;
  font-size: 2em;
  font-weight: bold;
  text-transform: uppercase;
}
.course-list-page .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.course-list-page .course-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.course-list-page .course-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.course-list-page .course-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.course-list-page .course-name {
  font-size: 1.5em;
  font-weight: 700;
  color: #2d3748;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}
.course-list-page .course-name:hover {
  color: #667eea;
}
.course-list-page .course-badges {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 6px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.course-list-page .badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.course-list-page .badge.badge-open {
  background: #e8f5e8;
  color: #2e7d32;
}
.course-list-page .badge.badge-closed {
  background: #ffebee;
  color: #c62828;
}
.course-list-page .badge.badge-selfstudy {
  background: #e5f7f9;
  color: #16696e;
}
.course-list-page .badge.badge-join {
  background: #e8f5e8 !important;
  color: #2e7d32 !important;
  border: none !important;
  cursor: pointer !important;
  -webkit-transition: all 0.2s ease !important;
  -moz-transition: all 0.2s ease !important;
  transition: all 0.2s ease !important;
}
.course-list-page .badge.badge-join:hover {
  background: #c8e6c9 !important;
  -webkit-transform: translateY(-1px) !important;
     -moz-transform: translateY(-1px) !important;
          transform: translateY(-1px) !important;
  -webkit-box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2) !important;
          box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2) !important;
}
.course-list-page .course-description {
  color: #718096;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 12px;
}
.course-list-page .course-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9em;
  color: #4a5568;
}
.course-list-page .course-meta-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
}
.course-list-page .course-meta-item i {
  color: #a0aec0;
  width: 14px;
}
.course-list-page .course-organizations {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 4px;
}
.course-list-page .org-badge {
  background: #eef2f7;
  color: #4a5568;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  border: 1px solid #e2e8f0;
}
.course-list-page .no-courses {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  background: #eef2f7;
  border-radius: 12px;
}
.course-list-page .no-courses h3 {
  color: #4a5568;
  margin-bottom: 8px;
}
.course-list-page .pagination-wrapper {
  margin-top: 24px;
  text-align: center;
}
.course-list-page .course-join-form {
  display: inline;
}
.course-list-page .course-join-form form {
  display: inline;
}
@media (max-width: 768px) {
  .course-list-page .course-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    text-align: center;
    gap: 12px;
  }
  .course-list-page .course-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    text-align: center;
    gap: 8px;
  }
  .course-list-page .course-meta {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 8px;
  }
  .course-list-page .course-meta-item {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
}

.course-create-page .form-header {
  margin-bottom: 0.5em;
}
.course-create-page .course-info {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.course-create-page .course-info h4 {
  margin-top: 0;
  color: #0f2a44;
}
.course-create-page .course-info ul {
  margin: 10px 0;
  padding-left: 20px;
}
.course-create-page .course-info li {
  margin: 5px 0;
  color: #527291;
}
.course-create-page .form-container {
  margin-bottom: 1em;
}
.course-create-page .form-field-wrapper {
  margin-bottom: 1em;
}
.course-create-page .form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
     -moz-box-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.course-create-page .form-actions .action-btn + .action-btn {
  margin-left: 10px;
}

.course-enrollment-page .enrollment-message {
  text-align: center;
  padding: 40px 20px;
  background-color: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  margin: 20px 0;
}
.course-enrollment-page .enrollment-message h2 {
  color: #14314c;
  margin-bottom: 20px;
}
.course-enrollment-page .enrollment-message p {
  color: #527291;
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.5;
}
.course-enrollment-page .course-info {
  background-color: #ffffff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.course-enrollment-page .course-info h3 {
  color: #14314c;
  margin-bottom: 15px;
}
.course-enrollment-page .enrollment-form {
  display: inline;
}
.course-enrollment-page .enrollment-form form {
  display: inline;
}

.course-tag {
  background: -webkit-linear-gradient(315deg, #2563eb, #1d4ed8);
  background: -moz-linear-gradient(315deg, #2563eb, #1d4ed8);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.org-course-edit-page .course-info {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.org-course-edit-page .course-info h4 {
  margin-top: 0;
  color: #0f2a44;
}
.org-course-edit-page .course-info ul {
  margin: 10px 0;
  padding-left: 20px;
}
.org-course-edit-page .course-info li {
  margin: 5px 0;
  color: #527291;
}
.org-course-edit-page .form-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}
.org-course-edit-page .form-actions-left {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
}
.org-course-edit-page .form-field-wrapper {
  margin-bottom: 1em;
}
.org-course-edit-page .delete-course-btn {
  background: #dc3545;
  color: white;
}

.course-grades-page table {
  font-size: 15px;
}
.course-grades-page td {
  height: 2.5em;
}
.course-grades-page .user-name {
  padding-left: 1em !important;
}
.course-grades-page .total-score {
  font-weight: bold;
}
.course-grades-page .grades-filter-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-top: 0.5em;
  margin-bottom: 1em;
}
.course-grades-page .grades-filter-form input[name=search] {
  margin: 0;
}
.course-grades-page .grades-filter-form label {
  cursor: pointer;
}
.course-grades-page .table-container {
  width: 100%;
  overflow-x: auto;
}
.course-grades-page .grades-pagination {
  margin-top: 10px;
}
.course-grades-page .points.quiz-col {
  background: rgba(91, 192, 222, 0.1);
}
.course-grades-page .quiz-score {
  background: rgba(91, 192, 222, 0.05);
}

.course-contest-table td[data-progress] {
  -webkit-box-shadow: inset 3px 0 0 0 #dce5ee;
          box-shadow: inset 3px 0 0 0 #dce5ee;
  text-align: left;
  padding-left: 12px;
}
.course-contest-table td[data-progress=done] {
  -webkit-box-shadow: inset 3px 0 0 0 #166534;
          box-shadow: inset 3px 0 0 0 #166534;
}
.course-contest-table td[data-progress=progress] {
  -webkit-box-shadow: inset 3px 0 0 0 #f59e0b;
          box-shadow: inset 3px 0 0 0 #f59e0b;
}
.course-contest-table .course-score-cell {
  text-align: right;
  padding-right: 12px;
}
.course-contest-table .course-score {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
     -moz-box-align: stretch;
          align-items: stretch;
  gap: 4px;
  min-width: 5.5em;
}
.course-contest-table .course-score-value {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f2a44;
  line-height: 1.15;
}
.course-contest-table .course-score-total {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #527291;
  margin-left: 2px;
}
.course-contest-table .course-score-meter {
  height: 4px;
  border-radius: 999px;
  background: #b6c7da;
  overflow: hidden;
}
.course-contest-table .course-score-meter::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--rate, 0%);
  border-radius: inherit;
  background: #2bb8be;
  -webkit-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 799px) {
  .course-contest-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .course-contest-table .course-score {
    min-width: 4.5em;
  }
}
.course-progress-summary {
  margin: 24px 0 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}

.course-progress-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.course-progress-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
}

.course-progress-figure {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 20px;
  color: #0f2a44;
}

.course-progress-total {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: #527291;
  margin-left: 4px;
}

.course-progress-pct {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: #1b7f84;
  margin-left: 8px;
}

.course-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #b6c7da;
  overflow: hidden;
}
.course-progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--rate, 0%);
  border-radius: inherit;
  background: #2bb8be;
  -webkit-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.course-preview-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 24px;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  margin-bottom: 16px;
}

.course-preview-cover {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 200px;
     -moz-box-flex: 0;
          flex: 0 0 200px;
}
.course-preview-cover img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.course-preview-headline {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.course-preview-headline h2 {
  margin: 2px 0 12px;
}

.course-preview-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  color: #1b7f84;
}

.course-preview-facts {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #193b5c;
}
.course-preview-facts b {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f2a44;
}
.course-preview-facts i {
  color: #527291;
  margin-right: 4px;
}

.course-preview-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #527291;
}

.course-preview-about {
  margin-bottom: 24px;
}

.course-preview-section {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #527291;
}
.course-preview-section:first-of-type {
  margin-top: 0;
}

.course-preview-syllabus {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}

.course-preview-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.course-preview-item + .course-preview-item {
  border-top: 1px solid #dce5ee;
}

.course-preview-index {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #193b5c;
  font-size: 12px;
}

.course-preview-name {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #0f2a44;
}

.course-preview-points {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  font-size: 13px;
  color: #527291;
}

@media (max-width: 799px) {
  .course-preview-head {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 12px;
  }
  .course-preview-cover {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
  }
}
.training-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.training-intro {
  padding: 40px 0 24px;
}
.training-intro h1 {
  margin: 4px 0 12px;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #0f2a44;
}
.training-intro p {
  margin: 0;
  max-width: 44rem;
  font-size: 17px;
  line-height: 1.55;
  color: #193b5c;
}

.training-intro-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  color: #1b7f84;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.training-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 140ms cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.training-card:hover {
  border-color: #b6c7da;
  -webkit-box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
          box-shadow: 0 10px 24px -6px rgba(25, 59, 92, 0.22), 0 4px 10px -4px rgba(25, 59, 92, 0.14);
  -webkit-transform: translateY(-2px);
     -moz-transform: translateY(-2px);
          transform: translateY(-2px);
  text-decoration: none;
}
.training-card:focus-visible {
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
          box-shadow: 0 0 0 3px rgba(95, 224, 229, 0.45);
}

.training-card-cover {
  aspect-ratio: 16/9;
  background: #0f2a44;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  overflow: hidden;
}
.training-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.training-card-initial {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 38px;
  color: #5fe0e5;
}

.training-card-body {
  padding: 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 8px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.training-card-body h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #0f2a44;
}

.training-card-level {
  -webkit-align-self: flex-start;
          align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  color: #16696e;
  background: #e5f7f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.training-card-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #193b5c;
}

.training-card-facts {
  margin: 4px 0 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 5px;
}
.training-card-facts > div {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.training-card-facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
}
.training-card-facts dd {
  margin: 0;
  text-align: right;
  color: #0f2a44;
  font-weight: 500;
}

.training-card-tutors {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
}

.training-tutor-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #193b5c;
}

.training-section {
  margin-top: 40px;
}

.training-section-title {
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #0f2a44;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dce5ee;
}

.training-hero {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 40px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 24px 0 40px;
}

.training-hero-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.training-hero-text h1 {
  margin: 8px 0 12px;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #0f2a44;
}

.training-hero-summary {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #193b5c;
}

.training-hero-cover {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 40%;
     -moz-box-flex: 0;
          flex: 0 0 40%;
}
.training-hero-cover img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dce5ee;
  -webkit-box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
          box-shadow: 0 4px 14px -3px rgba(25, 59, 92, 0.16), 0 2px 6px -2px rgba(25, 59, 92, 0.1);
  display: block;
}

.training-cta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.training-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 16px;
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 4px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}

.training-fact {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 6px;
}

.training-fact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #527291;
}

.training-fact-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f2a44;
}

.training-tutor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.training-tutor {
  padding: 16px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
  text-align: center;
}

.training-tutor-photo {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #0f2a44;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  color: #5fe0e5;
  font-size: 24px;
  font-weight: 700;
}
.training-tutor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-tutor-name {
  font-weight: 600;
  color: #0f2a44;
}

.training-tutor-title {
  font-size: 12px;
  color: #527291;
  margin-top: 2px;
}

.training-tutor-bio {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #193b5c;
  text-align: left;
}

.training-tutor-wins {
  margin: 12px 0 0;
  padding-left: 16px;
  text-align: left;
  font-size: 13px;
  color: #193b5c;
}

.training-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.training-gallery-item {
  margin: 0;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.training-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.training-gallery-item figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #527291;
}

.training-quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.training-quote {
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  -webkit-box-shadow: inset 3px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
          box-shadow: inset 3px 0 0 0 #2bb8be, 0 1px 2px 0 rgba(25, 59, 92, 0.08), 0 2px 6px -1px rgba(25, 59, 92, 0.1);
}
.training-quote blockquote {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 13px;
  line-height: 1.55;
  color: #0f2a44;
}
.training-quote figcaption {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
}

.training-quote-avatar {
  width: 36px;
  height: 36px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  font-weight: 600;
  color: #193b5c;
  font-size: 13px;
}
.training-quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-quote-who {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  min-width: 0;
}

.training-quote-name {
  font-weight: 600;
  font-size: 13px;
  color: #0f2a44;
}

.training-quote-role {
  font-size: 12px;
  color: #527291;
}

.training-quote-achievement {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #dce5ee;
  font-size: 12px;
  color: #1b7f84;
}
.training-quote-achievement i {
  margin-right: 4px;
}

@media (max-width: 799px) {
  .training-page {
    padding: 0 16px 24px;
  }
  .training-intro {
    padding: 24px 0 16px;
  }
  .training-intro h1 {
    font-size: 30px;
  }
  .training-intro p {
    font-size: 15px;
  }
  .training-hero {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
       -moz-box-align: stretch;
            align-items: stretch;
    gap: 16px;
    padding: 16px 0 24px;
  }
  .training-hero h1 {
    font-size: 30px;
  }
  .training-hero-cover {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
       -moz-box-flex: 0;
            flex: 0 0 auto;
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
       -moz-box-ordinal-group: 0;
            order: -1;
  }
  .training-cta .action-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
       -moz-box-flex: 1;
            flex: 1 1 auto;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
}
.actionbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid #dce5ee;
  margin-top: 0.75rem;
}
.actionbar .actionbar-block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.actionbar .actionbar-button {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #0f2a44;
  background: transparent;
  border: none;
  -webkit-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.actionbar .actionbar-button i {
  font-size: 1.1rem;
  -webkit-transition: -webkit-transform 0.15s ease;
  transition: -webkit-transform 0.15s ease;
  -moz-transition: transform 0.15s ease, -moz-transform 0.15s ease;
  transition: transform 0.15s ease;
  transition: transform 0.15s ease, -webkit-transform 0.15s ease, -moz-transform 0.15s ease;
}
.actionbar .actionbar-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #193b5c;
}
.actionbar .actionbar-button:hover i {
  -webkit-transform: scale(1.1);
     -moz-transform: scale(1.1);
          transform: scale(1.1);
}
.actionbar .actionbar-button:active {
  -webkit-transform: scale(0.95);
     -moz-transform: scale(0.95);
          transform: scale(0.95);
}
.actionbar .like-button {
  padding-right: 0.6rem;
  border-radius: 8px 0 0 8px;
}
.actionbar .like-button.voted {
  color: #193b5c;
  background: rgba(25, 59, 92, 0.1);
}
.actionbar .like-button.voted i {
  font-weight: 900;
}
.actionbar .like-button.voted:hover {
  background: rgba(25, 59, 92, 0.15);
  color: #193b5c;
}
.actionbar .dislike-button {
  padding-left: 0.6rem;
  border-radius: 0 8px 8px 0;
}
.actionbar .dislike-button.voted {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}
.actionbar .dislike-button.voted i {
  font-weight: 900;
}
.actionbar .dislike-button.voted:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
.actionbar .like-button:hover,
.actionbar .dislike-button:hover {
  background: rgba(0, 0, 0, 0.06);
}
.actionbar .like-button.disabled,
.actionbar .dislike-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.actionbar .bookmark-button.bookmarked {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}
.actionbar .bookmark-button.bookmarked i {
  font-weight: 900;
}
.actionbar .bookmark-button.bookmarked:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.actionbar .actionbar-share:hover {
  color: #1b7f84;
  background: rgba(27, 127, 132, 0.08);
}
.actionbar .pagevote-score {
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
}
.actionbar .actionbar-text {
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 799px) {
  .actionbar {
    gap: 0.25rem;
    padding: 0.4rem 0;
  }
  .actionbar .actionbar-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .actionbar .actionbar-button i {
    font-size: 1rem;
  }
  .hide_texts_on_mobile .actionbar-text {
    display: none;
  }
}
.actionbar-box .actionbar {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.contest-problemset html {
  background: white;
}
.contest-problemset body {
  background: white;
  margin: 0;
  padding: 20px;
}
.contest-problemset .contest-header {
  text-align: center;
  margin-bottom: 2em;
}
.contest-problemset .contest-header h1 {
  color: #0f2a44;
  font-size: 2.5em;
  margin-bottom: 0.2em;
}
.contest-problemset .contest-header h2 {
  color: #527291;
  font-size: 1.5em;
  margin-top: 0;
}
.contest-problemset .contest-header .back-link {
  margin-top: 1em;
}
.contest-problemset .contest-header .back-link a {
  color: #2f5680;
  text-decoration: none;
  font-size: 1.1em;
}
.contest-problemset .contest-header .back-link a:hover {
  text-decoration: underline;
}
.contest-problemset .problem-section {
  margin-bottom: 4em;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 2em;
}
.contest-problemset .problem-section:last-child {
  border-bottom: none;
}
.contest-problemset .problem-title {
  color: #0f2a44;
  font-size: 2em;
  border-bottom: 2px solid #2f5680;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}
.contest-problemset .new-problem-info {
  margin-bottom: 2em;
}
.contest-problemset .new-problem-info .info-block {
  margin-right: 2em;
  margin-bottom: 0.8em;
  font-size: 0.95em;
}
.contest-problemset .new-problem-info .info-block .fa {
  color: #2f5680;
  margin-right: 0.5em;
  width: 16px;
}
.contest-problemset .new-problem-info .info-block .fa-check {
  background: rgba(40, 167, 69, 0.15);
  color: #155724;
}
.contest-problemset .new-problem-info .info-block .fa-clock {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
}
.contest-problemset .new-problem-info .info-block .fa-server {
  background: rgba(40, 167, 69, 0.15);
  color: #155724;
}
.contest-problemset .new-problem-info .info-block .fa-file {
  background: rgba(0, 123, 255, 0.15);
  color: #004085;
}
.contest-problemset .contest-problems a,
.contest-problemset .problems a {
  color: #2f5680;
  text-decoration: none;
}
.contest-problemset .contest-problems a:hover,
.contest-problemset .problems a:hover {
  text-decoration: underline;
}
.contest-problemset .contest-problems a .fa,
.contest-problemset .problems a .fa {
  margin-right: 0.5em;
}
.contest-problemset .content-description {
  line-height: 1.7;
}
.contest-problemset .content-description h1, .contest-problemset .content-description h2, .contest-problemset .content-description h3, .contest-problemset .content-description h4, .contest-problemset .content-description h5, .contest-problemset .content-description h6 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
.contest-problemset .content-description pre, .contest-problemset .content-description .codehilite {
  border: 1px solid #dce5ee;
  border-radius: 5px;
  padding: 1.2em;
  margin: 1.5em 0;
  overflow-x: auto;
}
.contest-problemset .content-description table {
  background: white;
}
.contest-problemset .content-description table th, .contest-problemset .content-description table td {
  padding: 12px;
}
.contest-problemset .content-description table th {
  font-weight: bold;
}
.contest-problemset .content-description blockquote {
  border-left: 4px solid #2f5680;
  margin: 1.5em 0;
  color: #527291;
  background: #f1f5f9;
  padding: 1em 1em 1em 2em;
  border-radius: 0 5px 5px 0;
}
@media print {
  .contest-problemset .contest-header .back-link {
    display: none;
  }
  .contest-problemset .table a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
  }
  .contest-problemset .problem-section {
    page-break-after: always;
  }
  .contest-problemset .problem-section:last-child {
    page-break-after: auto;
  }
  .contest-problemset body {
    page-break-after: always;
  }
  .contest-problemset .fa {
    display: none !important;
  }
  .contest-problemset .info-block .fa-check,
  .contest-problemset .info-block .fa-clock,
  .contest-problemset .info-block .fa-server,
  .contest-problemset .info-block .fa-file {
    display: none !important;
  }
  .contest-problemset .problem-title {
    border-bottom-color: black !important;
  }
}
@media (max-width: 768px) {
  .contest-problemset body {
    padding: 10px;
  }
  .contest-problemset .contest-header h1 {
    font-size: 2em;
  }
  .contest-problemset .problem-title {
    font-size: 1.5em;
  }
  .contest-problemset .new-problem-info .info-block {
    display: block;
    margin-bottom: 0.5em;
  }
}

.user-upload-page .user-files-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}
.user-upload-page .top-section {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .user-upload-page .top-section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
  }
}
.user-upload-page .storage-summary {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 15px;
  background: #eef2f7;
  border-radius: 10px;
  border: 1px solid #dce5ee;
}
.user-upload-page .storage-summary h4 {
  margin: 0 0 10px 0;
  color: #0f2a44;
  font-size: 14px;
  font-weight: 600;
}
.user-upload-page .storage-summary p {
  margin: 0;
  font-size: 13px;
  color: #0f2a44;
  opacity: 0.8;
}
.user-upload-page .storage-bar {
  width: 100%;
  height: 20px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.user-upload-page .storage-used {
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#193b5c), to(rgb(33.7179487179, 79.5743589744, 124.0820512821)));
  background: -webkit-linear-gradient(left, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  background: -moz-linear-gradient(left, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  background: linear-gradient(90deg, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  -webkit-transition: width 0.3s ease;
  -moz-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.user-upload-page .upload-section {
  -webkit-box-flex: 2;
  -webkit-flex: 2;
     -moz-box-flex: 2;
          flex: 2;
  padding: 15px;
  background: #eef2f7;
  border-radius: 8px;
  border: 2px dashed #dce5ee;
}
.user-upload-page .upload-section h4 {
  margin: 0 0 10px 0;
  color: #0f2a44;
  font-size: 14px;
  font-weight: 600;
}
.user-upload-page .upload-section small {
  display: block;
  margin-top: 8px;
  color: #0f2a44;
  opacity: 0.7;
  font-size: 12px;
}
.user-upload-page .upload-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 10px;
}
.user-upload-page #file-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
}
.user-upload-page .upload-progress-bar {
  margin-top: 10px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
}
.user-upload-page .upload-progress-bar .progress-bar-track {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.user-upload-page .upload-progress-bar .progress-bar-fill {
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#193b5c), to(rgb(33.7179487179, 79.5743589744, 124.0820512821)));
  background: -webkit-linear-gradient(left, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  background: -moz-linear-gradient(left, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  background: linear-gradient(90deg, #193b5c, rgb(33.7179487179, 79.5743589744, 124.0820512821));
  border-radius: 4px;
  -webkit-transition: width 0.2s ease;
  -moz-transition: width 0.2s ease;
  transition: width 0.2s ease;
  width: 0%;
}
.user-upload-page .upload-progress-bar .progress-percent {
  font-size: 12px;
  color: #0f2a44;
  min-width: 35px;
  text-align: right;
}
.user-upload-page #upload-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}
.user-upload-page #upload-status.success {
  background: rgba(40, 167, 69, 0.1);
  color: green;
  border: 1px solid rgba(40, 167, 69, 0.3);
  display: block;
}
.user-upload-page #upload-status.error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  display: block;
}
.user-upload-page .file-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 20px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
.user-upload-page .search-box {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  position: relative;
}
.user-upload-page .search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  -webkit-transform: translateY(-50%);
     -moz-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #0f2a44;
}
.user-upload-page #file-search {
  width: 100%;
  padding: 8px 8px 8px 35px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
}
.user-upload-page .sort-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
}
.user-upload-page #sort-select {
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
}
.user-upload-page .view-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
}
.user-upload-page .view-btn {
  padding: 8px 12px;
  border: 1px solid #dce5ee;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  color: #0f2a44;
}
.user-upload-page .view-btn.active {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.user-upload-page .view-btn:hover:not(.active) {
  background: #eef2f7;
}
.user-upload-page .view-grid .files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.user-upload-page .view-list .files-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 10px;
}
.user-upload-page .view-list .file-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}
.user-upload-page .view-list .file-icon {
  margin-right: 15px;
}
.user-upload-page .view-list .file-icon i {
  font-size: 1.5em !important;
}
.user-upload-page .view-list .file-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.user-upload-page .view-list .file-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
}
.user-upload-page .file-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  background: white;
}
.user-upload-page .file-card:hover {
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.user-upload-page .file-card.removing {
  opacity: 0.5;
  -webkit-transform: scale(0.9);
     -moz-transform: scale(0.9);
          transform: scale(0.9);
}
.user-upload-page .file-card.hidden {
  display: none !important;
}
.user-upload-page .file-icon {
  margin-bottom: 10px;
  color: #0f2a44;
  height: 80px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.user-upload-page .image-thumbnail {
  width: 100%;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  background: #eef2f7;
}
.user-upload-page .image-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.user-upload-page .view-list .file-icon {
  height: 40px;
  width: 60px;
  margin-right: 15px;
}
.user-upload-page .view-list .image-thumbnail {
  height: 40px;
  width: 60px;
}
.user-upload-page .file-name {
  font-weight: bold;
  margin-bottom: 5px;
  word-break: break-word;
  color: #0f2a44;
}
.user-upload-page .file-meta {
  font-size: 12px;
  color: #0f2a44;
  opacity: 0.7;
  margin-bottom: 10px;
}
.user-upload-page .file-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 5px;
}
.user-upload-page .btn-action {
  padding: 5px 10px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
  color: #0f2a44;
  cursor: pointer;
  text-decoration: none;
}
.user-upload-page .btn-action:hover {
  background: #eef2f7;
  color: #0f2a44;
}
.user-upload-page .btn-action.copy-url-btn {
  color: #28a745;
}
.user-upload-page .btn-action.copy-url-btn:hover {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
}
.user-upload-page .btn-action.rename-btn {
  color: #2f5680;
}
.user-upload-page .btn-action.rename-btn:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #2f5680;
}
.user-upload-page .btn-action.btn-danger {
  color: #dc2626;
}
.user-upload-page .btn-action.btn-danger:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
}
.user-upload-page .no-files {
  text-align: center;
  padding: 50px;
  color: #0f2a44;
  opacity: 0.7;
}
.user-upload-page .no-files i {
  color: #0f2a44;
  opacity: 0.5;
}
.user-upload-page #upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 799px) {
  .user-upload-page .file-controls {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 10px;
  }
  .user-upload-page .search-box {
    width: 100%;
  }
  .user-upload-page .sort-controls {
    width: 100%;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
  }
  .user-upload-page .view-controls {
    width: 100%;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
  .user-upload-page .view-grid .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

.notification-page {
  /* Notification page styling */
}
.notification-page .notification-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.notification-page {
  /* Filter section styling */
}
.notification-page .filter-section {
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}
.notification-page .filter-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 20px;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.notification-page .filter-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  min-width: 150px;
}
.notification-page .filter-group label {
  font-weight: 600;
  margin-bottom: 5px;
}
.notification-page .filter-group input[type=text] {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
}
.notification-page .filter-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 10px;
}
.notification-page {
  /* Action buttons styling */
}
.notification-page .action-section {
  margin-bottom: 20px;
}
.notification-page .button {
  background: #2f5680;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.notification-page .button:hover {
  background: #0056b3;
}
.notification-page .button.secondary {
  background: #527291;
}
.notification-page .button.secondary:hover {
  background: #545b62;
}
.notification-page {
  /* Notification table styling */
}
.notification-page .notification-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.notification-page .notification-table th {
  background: #f1f5f9;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dce5ee;
}
.notification-page .notification-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #dce5ee;
  vertical-align: top;
}
.notification-page {
  /* Notification row states */
}
.notification-page .notification-row.unread {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}
.notification-page .notification-row.read {
  background-color: #f1f5f9;
  opacity: 0.8;
}
.notification-page .notification-row:hover {
  background-color: #dce5ee;
}
.notification-page {
  /* Content styling */
}
.notification-page .notification-content {
  max-width: 400px;
  word-wrap: break-word;
  cursor: pointer;
}
.notification-page .notification-content a {
  color: #2f5680;
  text-decoration: none;
}
.notification-page .notification-content a:hover {
  text-decoration: underline;
}
.notification-page {
  /* Time styling */
}
.notification-page .notification-time {
  font-size: 13px;
}
.notification-page .notification-time small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.notification-page {
  /* Empty state styling */
}
.notification-page .empty-state {
  text-align: center;
  padding: 60px 20px;
}
.notification-page .empty-state h3 {
  margin-bottom: 10px;
}
.notification-page {
  /* Responsive design */
}
@media (max-width: 768px) {
  .notification-page .filter-form {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
       -moz-box-align: stretch;
            align-items: stretch;
  }
  .notification-page .filter-group {
    min-width: auto;
  }
  .notification-page .filter-group input[type=text] {
    width: 100%;
  }
  .notification-page .notification-table {
    font-size: 14px;
  }
  .notification-page .notification-table th,
  .notification-page .notification-table td {
    padding: 10px 8px;
  }
  .notification-page .notification-content {
    max-width: 250px;
  }
}
.notification-page {
  /* Select2 customization */
}
.notification-page .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}
.notification-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  padding-left: 12px;
}
.notification-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.btn.btn-default {
  background-color: #eef2f7 !important;
  border: 1px solid #dce5ee !important;
  color: #0f2a44 !important;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  gap: 0.4em;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.btn.btn-default:hover {
  background-color: rgb(220.66, 228.74, 238.84) !important;
  text-decoration: none;
}

.btn.btn-default.btn-lg {
  padding: 10px 20px;
  font-size: 1rem;
}

form.quiz-join-pseudotab {
  display: inline;
  line-height: 1.7em;
  margin-left: auto;
  float: right;
}

.grading-badge {
  background: #d9534f;
  color: white;
  padding: 0.1em 0.5em;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 0.3em;
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

.quiz-field-row {
  margin-bottom: 1em;
}
.quiz-field-row label {
  display: block;
  margin-bottom: 0.3em;
}

.quiz-field-wrapper {
  margin-top: 0.4em;
}
.quiz-field-wrapper input[type=text],
.quiz-field-wrapper input[type=number],
.quiz-field-wrapper input[type=url],
.quiz-field-wrapper textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  background: white;
}
.quiz-field-wrapper textarea {
  min-height: 100px;
}
.quiz-field-wrapper select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #dce5ee;
  border-radius: 3px;
}
.quiz-field-wrapper .select2 {
  width: 100% !important;
}

.quiz-field-wrapper:has(> input[type=checkbox]) {
  display: contents;
}

.quiz-field-row-checkbox {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
}
.quiz-field-row-checkbox .quiz-checkbox-label {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
  cursor: pointer;
  margin-bottom: 0;
}
.quiz-field-row-checkbox .quiz-checkbox-label input[type=checkbox] {
  margin: 0;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}
.quiz-field-row-checkbox .quiz-help-text {
  -webkit-flex-basis: 100%;
          flex-basis: 100%;
  margin-top: 0;
}

.quiz-help-text {
  display: block;
  color: gray;
  font-size: 0.85em;
  margin-top: 0.25em;
}

.quiz-create-form {
  background: white;
  padding: 1.5em;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.quiz-create-form h2 {
  margin-top: 0;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #dce5ee;
}

.form-actions {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.create-help h4 {
  margin-bottom: 0.5em;
}
.create-help ul {
  margin: 0;
  padding-left: 1.5em;
}
.create-help li {
  margin-bottom: 0.3em;
}

.quiz-list-page .page-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.quiz-list-page .page-header h1 {
  margin: 0;
}
.quiz-list-page .page-header .actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-list-page .quiz-table {
  width: 100%;
}
.quiz-list-page .no-quizzes {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 4px;
}

.quiz-detail-page {
  max-width: 900px;
  margin: 0 auto;
}
.quiz-detail-page .quiz-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  margin-bottom: 1.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.quiz-detail-page .quiz-header h1 {
  margin: 0;
}
.quiz-detail-page .quiz-info {
  margin-bottom: 1.5rem;
}
.quiz-detail-page .quiz-info .info-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 2rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-detail-page .quiz-info .info-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.quiz-detail-page .quiz-info .info-item i {
  opacity: 0.7;
}
.quiz-detail-page .quiz-description {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.quiz-detail-page .quiz-user-info {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
}
.quiz-detail-page .quiz-user-info h3 {
  margin-top: 0;
}
.quiz-detail-page .quiz-user-info .user-stats {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-detail-page .quiz-user-info .user-stats .stat-item .stat-label {
  opacity: 0.7;
}
.quiz-detail-page .quiz-user-info .user-stats .stat-item .stat-value {
  font-weight: bold;
}
.quiz-detail-page .quiz-user-info .attempt-history {
  margin: 1.5rem 0;
}
.quiz-detail-page .quiz-user-info .attempt-history h4 {
  margin-bottom: 0.5rem;
}
.quiz-detail-page .quiz-user-info .start-quiz {
  margin-top: 1.5rem;
  text-align: center;
}
.quiz-detail-page .login-prompt {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 4px;
}

.quiz-attempt-page {
  max-width: 900px;
  margin: 0 auto;
}
.quiz-attempt-page .quiz-timer {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  z-index: 100;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.quiz-attempt-page .quiz-timer .quiz-title {
  font-weight: 500;
}
.quiz-attempt-page .quiz-timer .timer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}
.quiz-attempt-page .timer-warning {
  color: #f0ad4e;
}
.quiz-attempt-page .timer-danger {
  color: #d9534f;
}
.quiz-attempt-page .question-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.quiz-attempt-page .question-card .question-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dce5ee;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5rem;
}
.quiz-attempt-page .question-card .question-header .question-number {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.quiz-attempt-page .question-card .question-header .question-number .question-type {
  font-weight: normal;
  font-size: 0.85rem;
}
.quiz-attempt-page .question-card .question-header .question-points {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.quiz-attempt-page .question-card .question-header .question-points .save-status {
  font-size: 0.875rem;
}
.quiz-attempt-page .question-card .question-header .question-points .save-status.saving {
  color: #f0ad4e;
}
.quiz-attempt-page .question-card .question-header .question-points .save-status.saved {
  color: #5cb85c;
}
.quiz-attempt-page .question-card .question-header .question-points .save-status.error {
  color: #d9534f;
}
.quiz-attempt-page .question-card .question-content {
  margin-bottom: 1rem;
}
.quiz-attempt-page .question-card .question-choices label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s;
  -moz-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
}
.quiz-attempt-page .question-card .question-choices label:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.quiz-attempt-page .question-card .question-choices label input[type=radio],
.quiz-attempt-page .question-card .question-choices label input[type=checkbox] {
  margin-right: 0.75rem;
  margin-top: 0.35em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.quiz-attempt-page .question-card .question-choices label .choice-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  display: block;
}
.quiz-attempt-page .question-card .question-choices label .choice-content > p:first-child,
.quiz-attempt-page .question-card .question-choices label .choice-content > *:first-child {
  margin-top: 0;
}
.quiz-attempt-page .question-card .question-choices label .choice-content p {
  display: block;
  margin-top: 0;
  margin-bottom: 0.5em;
}
.quiz-attempt-page .question-card .question-choices label .choice-content p:last-child {
  margin-bottom: 0;
}
.quiz-attempt-page .question-card .question-textarea {
  width: 100%;
  min-height: 150px;
  padding: 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: inherit;
  background: white;
}
.quiz-attempt-page .question-card .question-textarea:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.quiz-attempt-page .question-card .short-answer-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  background: white;
}
.quiz-attempt-page .question-card .short-answer-input:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.quiz-attempt-page .question-card .essay-wrapper {
  border: 2px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.quiz-attempt-page .question-card .essay-wrapper:focus-within {
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.quiz-attempt-page .question-card .essay-wrapper .question-textarea {
  border: none;
  border-radius: 0;
}
.quiz-attempt-page .question-card .essay-wrapper .question-textarea:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}
.quiz-attempt-page .question-card .markdown-toolbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 2px;
  padding: 0.5rem;
  background: #eef2f7;
  border-bottom: 1px solid #dce5ee;
}
.quiz-attempt-page .question-card .markdown-toolbar button {
  padding: 0.4rem 0.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 3px;
  color: #0f2a44;
  font-size: 0.9rem;
}
.quiz-attempt-page .question-card .markdown-toolbar button:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.quiz-attempt-page .question-card .markdown-toolbar .separator {
  width: 1px;
  background: #dce5ee;
  margin: 0 0.25rem;
}
.quiz-attempt-page .submit-section {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 4px;
}
.quiz-attempt-page .submit-section p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.quiz-result-page {
  max-width: 900px;
  margin: 0 auto;
}
.quiz-result-page .result-header {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}
.quiz-result-page .result-header h1 {
  margin: 0 0 1rem;
}
.quiz-result-page .result-header .result-score {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
}
.quiz-result-page .result-header .result-score.excellent {
  color: #5cb85c;
}
.quiz-result-page .result-header .result-score.good {
  color: #5bc0de;
}
.quiz-result-page .result-header .result-score.average {
  color: #f0ad4e;
}
.quiz-result-page .result-header .result-score.poor {
  color: #d9534f;
}
.quiz-result-page .result-header .result-percentage {
  font-size: 1.5rem;
  opacity: 0.7;
}
.quiz-result-page .result-header .result-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}
.quiz-result-page .result-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-result-page .answer-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid transparent;
}
.quiz-result-page .answer-card.correct {
  border-left-color: #5cb85c;
}
.quiz-result-page .answer-card.incorrect {
  border-left-color: #d9534f;
}
.quiz-result-page .answer-card.pending {
  border-left-color: #f0ad4e;
}
.quiz-result-page .answer-card .answer-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5rem;
}
.quiz-result-page .answer-card .answer-status {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.quiz-result-page .answer-card .answer-status i.correct {
  color: #5cb85c;
}
.quiz-result-page .answer-card .answer-status i.incorrect {
  color: #d9534f;
}
.quiz-result-page .answer-card .answer-status i.pending {
  color: #f0ad4e;
}
.quiz-result-page .answer-card .user-answer,
.quiz-result-page .answer-card .correct-answer {
  padding: 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0;
}
.quiz-result-page .answer-card .user-answer .choice-content,
.quiz-result-page .answer-card .user-answer .answer-text-content,
.quiz-result-page .answer-card .correct-answer .choice-content,
.quiz-result-page .answer-card .correct-answer .answer-text-content {
  display: block;
  margin-top: 0.5rem;
}
.quiz-result-page .answer-card .user-answer .choice-content > p:first-child,
.quiz-result-page .answer-card .user-answer .choice-content > *:first-child,
.quiz-result-page .answer-card .user-answer .answer-text-content > p:first-child,
.quiz-result-page .answer-card .user-answer .answer-text-content > *:first-child,
.quiz-result-page .answer-card .correct-answer .choice-content > p:first-child,
.quiz-result-page .answer-card .correct-answer .choice-content > *:first-child,
.quiz-result-page .answer-card .correct-answer .answer-text-content > p:first-child,
.quiz-result-page .answer-card .correct-answer .answer-text-content > *:first-child {
  margin-top: 0;
}
.quiz-result-page .answer-card .user-answer .choice-content p:last-child,
.quiz-result-page .answer-card .user-answer .answer-text-content p:last-child,
.quiz-result-page .answer-card .correct-answer .choice-content p:last-child,
.quiz-result-page .answer-card .correct-answer .answer-text-content p:last-child {
  margin-bottom: 0;
}
.quiz-result-page .answer-card .user-answer ul,
.quiz-result-page .answer-card .correct-answer ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}
.quiz-result-page .answer-card .user-answer ul li,
.quiz-result-page .answer-card .correct-answer ul li {
  margin-bottom: 0.25rem;
}
.quiz-result-page .answer-card .user-answer ul li .choice-content,
.quiz-result-page .answer-card .correct-answer ul li .choice-content {
  margin-top: 0;
}
.quiz-result-page .answer-card .user-answer {
  background: #eef2f7;
}
.quiz-result-page .answer-card .correct-answer {
  background: rgba(92, 184, 92, 0.1);
  border: 1px solid #5cb85c;
}
.quiz-result-page .answer-card .explanation {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(91, 192, 222, 0.1);
  border-radius: 4px;
  border-left: 3px solid #5bc0de;
}
.quiz-result-page .answer-card .teacher-feedback {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(156, 39, 176, 0.1);
  border-radius: 4px;
  border-left: 3px solid #9c27b0;
}
.quiz-result-page .answer-card .teacher-feedback .feedback-content {
  margin-top: 0.5rem;
}
.quiz-result-page .retake-section {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  background: white;
  border-radius: 4px;
}

.quiz-edit-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .quiz-edit-page {
    grid-template-columns: 1fr;
  }
}
.quiz-edit-page .quiz-settings h2 {
  margin-top: 0;
}
.quiz-edit-page .quiz-settings .form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-edit-page .quiz-questions h2 {
  margin-top: 0;
}
.quiz-edit-page .quiz-questions .assigned-questions,
.quiz-edit-page .quiz-questions .available-questions {
  margin-top: 1rem;
}
.quiz-edit-page .quiz-questions .assigned-questions h3,
.quiz-edit-page .quiz-questions .available-questions h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.quiz-edit-page .quiz-questions .question-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dce5ee;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: white;
}
.quiz-edit-page .quiz-questions .question-item:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.quiz-edit-page .quiz-questions .question-item .question-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.question-bank-page .page-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.question-bank-page .page-header h1 {
  margin: 0;
}
.question-bank-page .filter-bar {
  margin-bottom: 1rem;
}
.question-bank-page .filter-bar .filter-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-bank-page .filter-bar .filter-form input[type=text] {
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  min-width: 200px;
}
.question-bank-page .filter-bar .filter-form select {
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
}
.question-bank-page .no-questions {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 4px;
}

.question-detail-page {
  max-width: 800px;
  margin: 0 auto;
}
.question-detail-page .page-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  margin-bottom: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.question-detail-page .page-header h1 {
  margin: 0;
}
.question-detail-page .page-header .actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
}
.question-detail-page .question-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-detail-page .question-content,
.question-detail-page .question-choices,
.question-detail-page .question-correct,
.question-detail-page .question-explanation,
.question-detail-page .question-tags,
.question-detail-page .used-in-quizzes {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.question-detail-page .question-content h3,
.question-detail-page .question-choices h3,
.question-detail-page .question-correct h3,
.question-detail-page .question-explanation h3,
.question-detail-page .question-tags h3,
.question-detail-page .used-in-quizzes h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.question-detail-page .question-content pre,
.question-detail-page .question-choices pre,
.question-detail-page .question-correct pre,
.question-detail-page .question-explanation pre,
.question-detail-page .question-tags pre,
.question-detail-page .used-in-quizzes pre {
  background: #eef2f7;
  padding: 0.5rem;
  border-radius: 4px;
  overflow-x: auto;
}
.question-detail-page .back-link {
  margin-top: 1.5rem;
}

.grading-dashboard-page .filter-bar {
  margin-bottom: 1rem;
}
.grading-dashboard-page .filter-bar select {
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  min-width: 200px;
}
.grading-dashboard-page .no-grading {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 4px;
}

.grading-page {
  max-width: 900px;
  margin: 0 auto;
}
.grading-page .attempt-info {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.grading-page .attempt-info p {
  margin: 0.25rem 0;
}
.grading-page .answer-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.grading-page .answer-card .question-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.grading-page .answer-card .answer-content {
  background: #eef2f7;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0;
}
.grading-page .answer-card .answer-files {
  margin: 1rem 0;
}
.grading-page .answer-card .answer-files ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.grading-page .answer-card .grade-input {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dce5ee;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.grading-page .answer-card .grade-input input[type=number] {
  width: 100px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-size: inherit;
  background: white;
}
.grading-page .answer-card .grade-input input[type=number]:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.grading-page .answer-card .feedback-input {
  margin-top: 1rem;
}
.grading-page .answer-card .feedback-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.grading-page .answer-card .feedback-input textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  resize: vertical;
  min-height: 80px;
  background: white;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.grading-page .answer-card .feedback-input textarea:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.grading-page .answer-card .feedback-input textarea::-webkit-input-placeholder {
  color: #8aa5c0;
}
.grading-page .answer-card .feedback-input textarea::-moz-placeholder {
  color: #8aa5c0;
}
.grading-page .answer-card .feedback-input textarea:-ms-input-placeholder {
  color: #8aa5c0;
}
.grading-page .answer-card .feedback-input textarea::placeholder {
  color: #8aa5c0;
}
.grading-page .form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  margin-top: 2rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.quiz-stats-page {
  max-width: 1000px;
  margin: 0 auto;
}
.quiz-stats-page .stats-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 2rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.quiz-stats-page .stats-header h1 {
  margin: 0;
}
.quiz-stats-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-stats-page .stats-grid .stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
}
.quiz-stats-page .stats-grid .stat-card .stat-value {
  font-size: 2rem;
  font-weight: bold;
}
.quiz-stats-page .stats-grid .stat-card .stat-label {
  opacity: 0.7;
  margin-top: 0.25rem;
}
.quiz-stats-page .distribution-chart {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
}
.quiz-stats-page .distribution-chart .distribution-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin: 0.5rem 0;
}
.quiz-stats-page .distribution-chart .distribution-bar .distribution-label {
  width: 80px;
  text-align: right;
  padding-right: 1rem;
  font-size: 0.9rem;
}
.quiz-stats-page .distribution-chart .distribution-bar .distribution-fill {
  height: 24px;
  background: #337ab7;
  border-radius: 4px;
  min-width: 2px;
  -webkit-transition: width 0.3s ease;
  -moz-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.quiz-stats-page .distribution-chart .distribution-bar .distribution-count {
  padding-left: 0.5rem;
  font-size: 0.9rem;
}

.quiz-create-page,
.quiz-delete-page {
  max-width: 600px;
  margin: 0 auto;
}
.quiz-create-page h1,
.quiz-delete-page h1 {
  margin-bottom: 1.5rem;
}
.quiz-create-page .quiz-form,
.quiz-delete-page .quiz-form {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
}
.quiz-create-page .quiz-form .form-actions,
.quiz-delete-page .quiz-form .form-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-create-page .alert,
.quiz-delete-page .alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.quiz-create-page .alert.alert-warning,
.quiz-delete-page .alert.alert-warning {
  background: rgba(240, 173, 78, 0.1);
  border: 1px solid #f0ad4e;
}

.quiz-manage-page {
  max-width: 1200px;
  margin: 0 auto;
}
.quiz-manage-page .manage-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 2rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
}
.quiz-manage-page .manage-header h1 {
  margin: 0;
}
.quiz-manage-page .manage-header .actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
}
.quiz-manage-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-manage-page .stats-grid .stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
}
.quiz-manage-page .stats-grid .stat-card .stat-value {
  font-size: 2rem;
  font-weight: bold;
}
.quiz-manage-page .stats-grid .stat-card .stat-label {
  opacity: 0.7;
}
.quiz-manage-page .attempts-table {
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  background: #193b5c;
  color: white;
}
.badge.badge-success {
  background: #5cb85c;
  color: white;
}
.badge.badge-warning {
  background: #f0ad4e;
  color: white;
}
.badge.badge-danger {
  background: #d9534f;
  color: white;
}

.quiz-sidebar-box {
  background: white;
  border-radius: 4px;
  margin-bottom: 10px;
  margin-left: 10px;
  padding: 0.75rem;
  border: 1px solid #dce5ee;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.quiz-sidebar-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.4rem;
}
@media (max-width: 799px) {
  .quiz-sidebar-box {
    margin-left: 0;
  }
}

.sidebar-timer {
  text-align: center;
  padding: 0.5rem;
  background: #eef2f7;
  border-radius: 4px;
}
.sidebar-timer .timer-value {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: var(--md-code-font-family), JetBrains Mono, ui-monospace, SFMono-Regular, Fira Code, monospace;
}
.sidebar-timer .timer-label {
  font-size: 0.75rem;
  color: #527291;
}
.sidebar-timer.timer-warning .timer-value {
  color: #f0ad4e;
}
.sidebar-timer.timer-danger .timer-value {
  color: #d9534f;
}

.progress-indicators {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.4rem;
}

.question-indicator {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  transition: all 0.2s;
}
.question-indicator:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.question-indicator.current {
  background: #337ab7;
  color: white;
  border-color: #337ab7;
}
.question-indicator.answered {
  background: #5cb85c;
  color: white;
  border-color: #5cb85c;
}

.quiz-header-bar {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5rem;
  border: 1px solid #dce5ee;
}
.quiz-header-bar .quiz-title {
  font-size: 1.1rem;
  font-weight: bold;
}
.quiz-header-bar .quiz-meta {
  color: #527291;
  font-size: 0.9rem;
}

.question-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dce5ee;
}
.question-card .question-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dce5ee;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 0.5rem;
}
.question-card .question-header .question-number {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.question-card .question-header .question-number .question-type {
  font-weight: normal;
  font-size: 0.85rem;
}
.question-card .question-header .question-points {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.question-card .question-header .question-points .save-status {
  font-size: 0.875rem;
}
.question-card .question-header .question-points .save-status.saving {
  color: #f0ad4e;
}
.question-card .question-header .question-points .save-status.saved {
  color: #5cb85c;
}
.question-card .question-header .question-points .save-status.error {
  color: #d9534f;
}
.question-card .question-content {
  margin-bottom: 1rem;
}
.question-card .question-choices label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s;
  -moz-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
}
.question-card .question-choices label:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.question-card .question-choices label input[type=radio],
.question-card .question-choices label input[type=checkbox] {
  margin-right: 0.75rem;
  margin-top: 0.35em;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.question-card .question-choices label .choice-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  display: block;
}
.question-card .question-choices label .choice-content > p:first-child,
.question-card .question-choices label .choice-content > *:first-child {
  margin-top: 0;
}
.question-card .question-choices label .choice-content p {
  display: block;
  margin-top: 0;
  margin-bottom: 0.5em;
}
.question-card .question-choices label .choice-content p:last-child {
  margin-bottom: 0;
}
.question-card .short-answer-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-size: inherit;
  background: white;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.question-card .short-answer-input:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

.submit-section {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 4px;
  margin-top: 1rem;
  border: 1px solid #dce5ee;
}
.submit-section p {
  margin-bottom: 1rem;
  color: #527291;
}

.essay-editor-container {
  border: 2px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.essay-editor-container:focus-within {
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.essay-editor-container .wmd-button-bar {
  background: #eef2f7;
  padding: 0.25rem;
  border-bottom: 1px solid #dce5ee;
}
.essay-editor-container .wmd-button-row {
  margin: 5px;
  padding: 0;
}
.essay-editor-container .wmd-button {
  border-radius: 4px;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.essay-editor-container .wmd-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.essay-editor-container .wmd-input {
  border: none !important;
  border-radius: 0;
  height: 200px;
  color: inherit;
}
.essay-editor-container .wmd-input:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}
.essay-editor-container .wmd-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.essay-editor-container .wmd-input::-moz-placeholder {
  color: #8aa5c0;
}
.essay-editor-container .wmd-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.essay-editor-container .wmd-input::placeholder {
  color: #8aa5c0;
}
.essay-editor-container .wmd-preview {
  display: none !important;
}

.sa-editor-container {
  border: 2px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
}
.sa-editor-container:focus-within {
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.sa-editor-container .wmd-button-bar {
  background: #eef2f7;
  padding: 0.25rem;
  border-bottom: 1px solid #dce5ee;
}
.sa-editor-container .wmd-button-row {
  margin: 5px;
  padding: 0;
}
.sa-editor-container .wmd-button {
  border-radius: 4px;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.sa-editor-container .wmd-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.sa-editor-container .wmd-input {
  border: none !important;
  border-radius: 0;
  height: 80px;
  min-height: 60px;
  color: inherit;
}
.sa-editor-container .wmd-input:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
}
.sa-editor-container .wmd-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.sa-editor-container .wmd-input::-moz-placeholder {
  color: #8aa5c0;
}
.sa-editor-container .wmd-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.sa-editor-container .wmd-input::placeholder {
  color: #8aa5c0;
}
.sa-editor-container .wmd-preview {
  display: none !important;
}

.essay-file-upload {
  margin-top: 1rem;
}

.file-upload-zone {
  border: 2px dashed #dce5ee;
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  transition: all 0.2s;
  background: #eef2f7;
  color: #527291;
}
.file-upload-zone:hover {
  border-color: #8aa5c0;
  background: rgb(227.596, 234.044, 242.104);
}
.file-upload-zone.dragover {
  border-color: #337ab7;
  background: rgba(51, 122, 183, 0.1);
}
.file-upload-zone i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #8aa5c0;
}
.file-upload-zone .file-input {
  display: none;
}

.file-upload-info {
  font-size: 0.8rem;
  color: #8aa5c0;
  margin-top: 0.5rem;
  text-align: center;
}

.uploaded-files-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}
.uploaded-files-list li {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.5rem 0.75rem;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}
.uploaded-files-list li.uploading {
  opacity: 0.7;
}
.uploaded-files-list .file-icon {
  color: #527291;
}
.uploaded-files-list .file-name {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #337ab7;
}
.uploaded-files-list a.file-name:hover {
  text-decoration: underline;
}
.uploaded-files-list .file-size {
  color: #8aa5c0;
  font-size: 0.85rem;
}
.uploaded-files-list .file-delete-btn {
  background: none;
  border: none;
  color: #8aa5c0;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.uploaded-files-list .file-delete-btn:hover {
  color: #d9534f;
}

.grading-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-transition: background-color linear 0.2s;
  -moz-transition: background-color linear 0.2s;
  transition: background-color linear 0.2s;
  margin-bottom: 15px;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 10px;
  background: white;
}
.grading-row .user-img {
  width: 70px;
  height: 70px;
  margin-right: 15px;
  border-radius: 50%;
}
.grading-row .grading-details {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
     -moz-box-flex: 1;
          flex-grow: 1;
  overflow: hidden;
}
.grading-row .grading-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
  font-size: 1.2em;
  margin-bottom: 10px;
}
.grading-row .grading-info .grading-user {
  overflow-wrap: break-word;
}
.grading-row .grading-info .grading-quiz {
  font-weight: 700;
}
.grading-row .grading-info .grading-quiz:hover {
  text-decoration: underline;
}
.grading-row .grading-result {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  font-weight: 600;
  gap: 10px;
}
.grading-row .grading-result .state {
  padding: 5px 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.9em;
}
.grading-row .grading-result .state.graded {
  background-color: #5cb85c;
}
.grading-row .grading-result .state.pending {
  background-color: #d9534f;
}
.grading-row .grading-result .score {
  font-size: 1.2em;
}
.grading-row .grading-result .score.perfect {
  color: #5cb85c;
}
.grading-row .grading-result .score.good {
  color: #5bc0de;
}
.grading-row .grading-result .score.average {
  color: #f0ad4e;
}
.grading-row .grading-result .score.poor {
  color: #d9534f;
}
.grading-row .grading-usage {
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 4px;
}
.grading-row .grading-usage .time {
  font-weight: bold;
}
.grading-row .grading-prop a {
  white-space: nowrap;
}
.grading-row .grading-prop .label {
  margin-left: 2px;
}
@media (max-width: 799px) {
  .grading-row .user-img {
    display: none;
  }
  .grading-row .grading-prop .label {
    display: none;
  }
}

.grading-page .attempt-info {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid #dce5ee;
  line-height: 1.8;
  font-size: 15px;
}
.grading-page .attempt-info p {
  margin: 0.25rem 0;
}
.grading-page .answer-card {
  border: 1px solid #dce5ee;
}
.grading-page .answer-card .question-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #dce5ee;
  margin-bottom: 0.5rem;
}
.grading-page .answer-card .answer-content {
  background: #eef2f7;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0;
  line-height: 1.5;
}
.grading-page .grade-input input[type=number] {
  width: 100px;
  padding: 0.5rem 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-size: inherit;
  background: white;
}
.grading-page .grade-input input[type=number]:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.grading-page .partial-credit-section {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #eef2f7;
  border-radius: 4px;
}
.grading-page .partial-credit-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 1rem;
}
.grading-page .partial-credit-slider {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  max-width: 200px;
}
.grading-page .partial-credit-value {
  font-weight: bold;
  min-width: 50px;
}
.grading-page .quick-grade-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.grading-page .quick-grade-btns button {
  padding: 0.25rem 0.75rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.grading-page .quick-grade-btns button:hover {
  background: #193b5c;
  color: white;
}
.grading-page .feedback-input {
  margin-top: 1rem;
}
.grading-page .feedback-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.grading-page .feedback-input textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #dce5ee;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  background: white;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.grading-page .feedback-input textarea:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.grading-page .feedback-input textarea::-webkit-input-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-input textarea::-moz-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-input textarea:-ms-input-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-input textarea::placeholder {
  color: #8aa5c0;
}
.grading-page .file-attachments {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #eef2f7;
  border-radius: 4px;
}
.grading-page .file-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}
.grading-page .file-list li {
  padding: 0.25rem 0;
}
.grading-page .file-list a {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
}
.grading-page .auto-graded-badge {
  background: #5cb85c;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  margin-left: 0.5rem;
}
.grading-page .needs-grading-badge {
  background: #f0ad4e;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  margin-left: 0.5rem;
}
.grading-page .choices-display {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: #eef2f7;
  border-radius: 4px;
}
.grading-page .choices-display > strong {
  display: block;
  margin-bottom: 0.25rem;
}
.grading-page .grading-choice-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  padding: 0.2rem 0;
  gap: 0.5rem;
}
.grading-page .grading-choice-item.correct-choice {
  font-weight: bold;
}
.grading-page .grading-choice-item.student-choice:not(.correct-choice) {
  opacity: 0.75;
}
.grading-page .grading-choice-id {
  font-weight: bold;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  min-width: 1.5rem;
}
.grading-page .grading-choice-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.grading-page .grading-choice-text p {
  display: inline;
  margin: 0;
}
.grading-page .grading-choice-text p + p {
  display: block;
  margin-top: 0.25rem;
}
.grading-page .answer-content .student-answer-text {
  margin-top: 0.25rem;
}
.grading-page .answer-content .student-answer-text p {
  margin-top: 0;
  margin-bottom: 0.25em;
}
.grading-page .answer-content .student-answer-text p:last-child {
  margin-bottom: 0;
}
.grading-page .correct-answers-display {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: rgba(92, 184, 92, 0.1);
  border: 1px solid #5cb85c;
  border-radius: 4px;
}
.grading-page .correct-answers-display > strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #5cb85c;
}
.grading-page .sa-answers-info {
  margin-bottom: 0.25rem;
  font-size: 0.9em;
  color: #527291;
}
.grading-page .sa-answers-info i {
  margin-right: 0.25rem;
}
.grading-page .sa-accepted-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
  list-style-position: outside;
}
.grading-page .sa-accepted-list li {
  margin-bottom: 0.5rem;
  padding-top: 0.1rem;
}
.grading-page .sa-accepted-list li:last-child {
  margin-bottom: 0;
}
.grading-page .sa-accepted-list .sa-answer-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.grading-page .feedback-editor-container {
  border: 2px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.grading-page .feedback-editor-container:focus-within {
  border-color: #193b5c;
  -webkit-box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
          box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}
.grading-page .feedback-editor-container .wmd-button-bar {
  background: #eef2f7;
  padding: 0.25rem;
  border-bottom: 1px solid #dce5ee;
}
.grading-page .feedback-editor-container .wmd-button-row {
  margin: 5px;
  padding: 0;
}
.grading-page .feedback-editor-container .wmd-button {
  border-radius: 4px;
  -webkit-transition: background-color 0.15s ease;
  -moz-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.grading-page .feedback-editor-container .wmd-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.grading-page .feedback-editor-container .wmd-input {
  border: none !important;
  border-radius: 0;
  height: 60px !important;
  min-height: 60px !important;
  width: 100%;
  padding: 0.5rem 0.75rem;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  resize: vertical;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.grading-page .feedback-editor-container .wmd-input:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
}
.grading-page .feedback-editor-container .wmd-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-editor-container .wmd-input::-moz-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-editor-container .wmd-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-editor-container .wmd-input::placeholder {
  color: #8aa5c0;
}
.grading-page .feedback-editor-container .wmd-preview {
  display: none !important;
}

.quiz-result-page .answer-files {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #eef2f7;
  border-radius: 4px;
}
.quiz-result-page .answer-files h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #527291;
}
.quiz-result-page .answer-files ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quiz-result-page .answer-files li {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}
.quiz-result-page .answer-files .file-icon {
  color: #527291;
}
.quiz-result-page .answer-files .file-name {
  color: #337ab7;
}
.quiz-result-page .answer-files .file-name:hover {
  text-decoration: underline;
}
.quiz-result-page .answer-files .file-size {
  color: #8aa5c0;
  font-size: 0.85rem;
}

.file-item-collapsible {
  margin-bottom: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  overflow: hidden;
  background: #eef2f7;
  width: 100%;
}
.file-item-collapsible .file-item-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #eef2f7;
}
.file-item-collapsible .file-item-header .file-icon {
  color: #527291;
}
.file-item-collapsible .file-item-header .file-name {
  color: #337ab7;
  text-decoration: none;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.file-item-collapsible .file-item-header .file-name:hover {
  text-decoration: underline;
}
.file-item-collapsible .file-item-header .file-size {
  color: #8aa5c0;
  font-size: 0.85rem;
}
.file-item-collapsible .file-item-header .file-delete-btn {
  background: none;
  border: none;
  color: #8aa5c0;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
}
.file-item-collapsible .file-item-header .file-delete-btn:hover {
  color: #dc2626;
}
.file-item-collapsible .file-item-header .file-preview-toggle {
  background: none;
  border: none;
  color: #0f2a44;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -moz-transition: transform 0.2s ease, -moz-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease, -moz-transform 0.2s ease;
}
.file-item-collapsible .file-item-header .file-preview-toggle:hover {
  color: #337ab7;
}
.file-item-collapsible .file-item-header .file-preview-toggle i {
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  -moz-transition: transform 0.2s ease, -moz-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease, -moz-transform 0.2s ease;
}

.file-preview-collapsible {
  border-top: 1px solid #dce5ee;
  background: white;
  width: 100%;
}
.file-preview-collapsible.file-preview-image {
  padding: 0;
}
.file-preview-collapsible.file-preview-image img {
  width: 100%;
  height: auto;
  display: block;
}
.file-preview-collapsible.file-preview-pdf iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.uploaded-files-list {
  margin-top: 0.5rem;
}

.page-title-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-title-row h2 {
  margin: 0;
}

.page-title-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #dce5ee;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
}

.stat-label {
  color: #527291;
  font-size: 0.9em;
}

.distribution-chart {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.distribution-chart canvas {
  max-height: 300px;
}

.quiz-create-container,
.quiz-edit-container {
  background: white;
  padding: 1.5em 2em;
  border-radius: 0.5em;
}
.quiz-create-container .edit-section,
.quiz-edit-container .edit-section {
  margin-bottom: 2rem;
}
.quiz-create-container .edit-section h3,
.quiz-edit-container .edit-section h3 {
  margin: 0 0 1.25em 0;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
}
.quiz-create-container .questions-header,
.quiz-edit-container .questions-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 1em;
}
.quiz-create-container .questions-header h3,
.quiz-edit-container .questions-header h3 {
  margin: 0;
  border: none;
  padding: 0;
}
.quiz-create-container .form-actions,
.quiz-edit-container .form-actions {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.quiz-create-container .question-item,
.quiz-edit-container .question-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #dce5ee;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: #eef2f7;
}
.quiz-create-container .question-item:hover,
.quiz-edit-container .question-item:hover {
  background: rgb(227.596, 234.044, 242.104);
}
.quiz-create-container .question-item.pending-add,
.quiz-edit-container .question-item.pending-add {
  border-left: 3px solid #5cb85c;
}
.quiz-create-container .question-item.pending-remove,
.quiz-edit-container .question-item.pending-remove {
  opacity: 0.5;
  text-decoration: line-through;
  border-left: 3px solid #d9534f;
}
.quiz-create-container .question-item .drag-handle,
.quiz-edit-container .question-item .drag-handle {
  cursor: move;
  color: #527291;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
}
.quiz-create-container .question-item .question-info,
.quiz-edit-container .question-item .question-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-create-container .question-item .question-order,
.quiz-edit-container .question-item .question-order {
  font-weight: bold;
  min-width: 1.5rem;
}
.quiz-create-container .question-item .points-input,
.quiz-edit-container .question-item .points-input {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  text-align: center;
  background: white;
  color: inherit;
}
.quiz-create-container .question-item .question-actions,
.quiz-edit-container .question-item .question-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.25rem;
  margin-left: 0.75rem;
}
.quiz-create-container .add-question-section,
.quiz-edit-container .add-question-section {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #dce5ee;
}
.quiz-create-container .add-question-section h4,
.quiz-edit-container .add-question-section h4 {
  margin: 0 0 0.75em 0;
}
.quiz-create-container .add-question-form,
.quiz-edit-container .add-question-form {
  background: #eef2f7;
  padding: 1em;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.quiz-create-container .add-question-form label,
.quiz-edit-container .add-question-form label {
  font-weight: 500;
  margin-bottom: 0.3em;
  display: block;
}
.quiz-create-container .add-question-form #add-question-points,
.quiz-edit-container .add-question-form #add-question-points {
  background: white;
  color: inherit;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}
.quiz-create-container .sortable-ghost,
.quiz-edit-container .sortable-ghost {
  opacity: 0.4;
  background: #337ab7;
}
.quiz-create-container .sortable-chosen,
.quiz-edit-container .sortable-chosen {
  background: rgb(220.66, 228.74, 238.84);
}
.quiz-create-container .unsaved-indicator,
.quiz-edit-container .unsaved-indicator {
  color: #f0ad4e;
  font-size: 0.85em;
  margin-left: 1em;
}
.quiz-create-container .unsaved-indicator.hidden,
.quiz-edit-container .unsaved-indicator.hidden {
  display: none;
}

.quiz-info-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.5em 0.3em;
  border-bottom: 1px solid #dce5ee;
}
.quiz-info-item:last-child {
  border-bottom: none;
}
.quiz-info-item:first-child {
  padding-top: 0.3em;
}

.quiz-info-label {
  color: #0f2a44;
  opacity: 0.7;
  font-size: 0.95em;
}

.quiz-info-value {
  font-weight: 600;
  color: #193b5c;
  font-size: 1.05em;
}

.question-create-container,
.question-edit-container {
  background: white;
  padding: 1.5em 2em;
  border-radius: 0.5em;
}
.question-create-container .form-section,
.question-edit-container .form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dce5ee;
}
.question-create-container .form-section:last-child,
.question-edit-container .form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.question-create-container .form-section h3,
.question-edit-container .form-section h3 {
  margin: 0 0 1.25em 0;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
}
.question-create-container .form-actions,
.question-edit-container .form-actions {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #dce5ee;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-create-container .choice-editor-section,
.question-edit-container .choice-editor-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.question-create-container .choice-editor-section h4,
.question-edit-container .choice-editor-section h4 {
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}
.question-create-container .add-choice-btn,
.question-edit-container .add-choice-btn {
  margin-top: 0.5rem;
}
.question-create-container .sa-editor h4,
.question-edit-container .sa-editor h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.question-create-container .sa-field,
.question-edit-container .sa-field {
  margin-bottom: 1rem;
}
.question-create-container .sa-field > label,
.question-edit-container .sa-field > label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.question-create-container .sa-select,
.question-edit-container .sa-select {
  min-width: 200px;
}
.question-create-container .sa-help,
.question-edit-container .sa-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85em;
  color: #527291;
}
.question-create-container .sa-answer-row,
.question-edit-container .sa-answer-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.question-create-container #sa-add-answer,
.question-edit-container #sa-add-answer {
  margin-top: 0.5rem;
}
.question-create-container .help-section,
.question-edit-container .help-section {
  margin-bottom: 1rem;
}
.question-create-container .help-section h4,
.question-edit-container .help-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}
.question-create-container .help-section p,
.question-edit-container .help-section p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #527291;
}
.question-create-container .help-section ul,
.question-edit-container .help-section ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #527291;
}
.question-create-container .help-section li,
.question-edit-container .help-section li {
  margin-bottom: 0.25rem;
}
.question-create-container .choice-editor,
.question-edit-container .choice-editor {
  padding: 1rem;
  background: #eef2f7;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.question-create-container .choice-item,
.question-edit-container .choice-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.question-create-container .choice-item .choice-row-controls,
.question-edit-container .choice-item .choice-row-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}
.question-create-container .choice-item .drag-handle,
.question-edit-container .choice-item .drag-handle {
  cursor: move;
  color: #527291;
  padding: 0.25rem;
  margin-top: 0.5rem;
}
.question-create-container .choice-item .correct-checkbox,
.question-edit-container .choice-item .correct-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 0.5rem;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.question-create-container .choice-item input[type=text],
.question-edit-container .choice-item input[type=text] {
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
}
.question-create-container .choice-item input[type=text]::-webkit-input-placeholder, .question-edit-container .choice-item input[type=text]::-webkit-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item input[type=text]::-moz-placeholder, .question-edit-container .choice-item input[type=text]::-moz-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item input[type=text]:-ms-input-placeholder, .question-edit-container .choice-item input[type=text]:-ms-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item input[type=text]::placeholder,
.question-edit-container .choice-item input[type=text]::placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-id,
.question-edit-container .choice-item .choice-id {
  width: 50px;
  text-align: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.question-create-container .choice-item .choice-text-input,
.question-edit-container .choice-item .choice-text-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  resize: none;
  overflow: hidden;
  min-height: 32px;
  line-height: 1.4;
}
.question-create-container .choice-item .choice-text-input::-webkit-input-placeholder, .question-edit-container .choice-item .choice-text-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-text-input::-moz-placeholder, .question-edit-container .choice-item .choice-text-input::-moz-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-text-input:-ms-input-placeholder, .question-edit-container .choice-item .choice-text-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-text-input::placeholder,
.question-edit-container .choice-item .choice-text-input::placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-text-input:focus,
.question-edit-container .choice-item .choice-text-input:focus {
  border-color: #193b5c;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.15);
          box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.15);
}
.question-create-container .choice-item .choice-label-badge,
.question-edit-container .choice-item .choice-label-badge {
  background: #eef2f7;
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}
.question-create-container .choice-item .remove-choice-btn,
.question-create-container .choice-item .expand-choice-btn,
.question-edit-container .choice-item .remove-choice-btn,
.question-edit-container .choice-item .expand-choice-btn {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  margin-top: 0.25rem;
}
.question-create-container .choice-item .choice-expanded-editor,
.question-edit-container .choice-item .choice-expanded-editor {
  width: 100%;
}
.question-create-container .choice-item .choice-expanded-editor .choice-wmd-wrapper,
.question-edit-container .choice-item .choice-expanded-editor .choice-wmd-wrapper {
  border: 1px solid #193b5c;
  border-radius: 4px;
  overflow: hidden;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-header,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  background: #eef2f7;
  padding: 0.25rem;
  border-bottom: 1px solid #dce5ee;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-header .wmd-button-bar,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-header .wmd-button-bar {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  background: transparent;
  padding: 0;
  border: none;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-header .collapse-choice-btn,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-header .collapse-choice-btn {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background: transparent;
  border: 1px solid #dce5ee;
  color: #0f2a44;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-header .collapse-choice-btn:hover,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-header .collapse-choice-btn:hover {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  resize: vertical;
  background: white;
  color: #0f2a44;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea:focus,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea:focus {
  outline: none;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea::-webkit-input-placeholder, .question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea::-webkit-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea::-moz-placeholder, .question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea::-moz-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea:-ms-input-placeholder, .question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea:-ms-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-expanded-editor .choice-expanded-textarea::placeholder,
.question-edit-container .choice-item .choice-expanded-editor .choice-expanded-textarea::placeholder {
  color: #8aa5c0;
}
.question-create-container .choice-item .choice-expanded-editor .choice-preview,
.question-edit-container .choice-item .choice-expanded-editor .choice-preview {
  margin-top: 4px;
}
.question-create-container .choice-item .choice-expanded-editor .choice-preview .dmmd-preview-content,
.question-edit-container .choice-item .choice-expanded-editor .choice-preview .dmmd-preview-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
}
.question-create-container .sa-editor,
.question-edit-container .sa-editor {
  margin-top: 1rem;
  padding: 1rem;
  background: #eef2f7;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.question-create-container .sa-editor .sa-select,
.question-create-container .sa-editor .sa-answer-input,
.question-edit-container .sa-editor .sa-select,
.question-edit-container .sa-editor .sa-answer-input {
  padding: 0.5rem;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: white;
  color: #0f2a44;
}
.question-create-container .sa-editor .sa-select::-webkit-input-placeholder, .question-create-container .sa-editor .sa-answer-input::-webkit-input-placeholder, .question-edit-container .sa-editor .sa-select::-webkit-input-placeholder, .question-edit-container .sa-editor .sa-answer-input::-webkit-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-select::-moz-placeholder, .question-create-container .sa-editor .sa-answer-input::-moz-placeholder, .question-edit-container .sa-editor .sa-select::-moz-placeholder, .question-edit-container .sa-editor .sa-answer-input::-moz-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-select:-ms-input-placeholder, .question-create-container .sa-editor .sa-answer-input:-ms-input-placeholder, .question-edit-container .sa-editor .sa-select:-ms-input-placeholder, .question-edit-container .sa-editor .sa-answer-input:-ms-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-select::placeholder,
.question-create-container .sa-editor .sa-answer-input::placeholder,
.question-edit-container .sa-editor .sa-select::placeholder,
.question-edit-container .sa-editor .sa-answer-input::placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-answer-row,
.question-edit-container .sa-editor .sa-answer-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.question-create-container .sa-editor .sa-answer-row .sa-row-controls,
.question-edit-container .sa-editor .sa-answer-row .sa-row-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  -webkit-flex-wrap: nowrap;
          flex-wrap: nowrap;
}
.question-create-container .sa-editor .sa-answer-row .sa-answer-input,
.question-edit-container .sa-editor .sa-answer-row .sa-answer-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: inherit;
  resize: none;
  overflow: hidden;
  min-height: 32px;
}
.question-create-container .sa-editor .sa-answer-row .sa-answer-input.auto-resize-textarea,
.question-edit-container .sa-editor .sa-answer-row .sa-answer-input.auto-resize-textarea {
  overflow: hidden;
}
.question-create-container .sa-editor .sa-answer-row .expand-sa-btn,
.question-create-container .sa-editor .sa-answer-row .sa-remove-answer,
.question-edit-container .sa-editor .sa-answer-row .expand-sa-btn,
.question-edit-container .sa-editor .sa-answer-row .sa-remove-answer {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor {
  width: 100%;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-wmd-wrapper,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-wmd-wrapper {
  border: 1px solid #193b5c;
  border-radius: 4px;
  overflow: hidden;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  background: #eef2f7;
  padding: 0.25rem;
  border-bottom: 1px solid #dce5ee;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .wmd-button-bar,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .wmd-button-bar {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  background: transparent;
  padding: 0;
  border: none;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .collapse-sa-btn,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .collapse-sa-btn {
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  background: transparent;
  border: 1px solid #dce5ee;
  color: #0f2a44;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .collapse-sa-btn:hover,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-header .collapse-sa-btn:hover {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  resize: vertical;
  background: white;
  color: #0f2a44;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea:focus,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea:focus {
  outline: none;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::-webkit-input-placeholder, .question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::-webkit-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::-moz-placeholder, .question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::-moz-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea:-ms-input-placeholder, .question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea:-ms-input-placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::placeholder,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-expanded-textarea::placeholder {
  color: #8aa5c0;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-answer-preview,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-answer-preview {
  margin-top: 4px;
}
.question-create-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-answer-preview .dmmd-preview-content,
.question-edit-container .sa-editor .sa-answer-row .sa-expanded-editor .sa-answer-preview .dmmd-preview-content {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
}
.question-create-container .expand-choice-btn,
.question-create-container .expand-sa-btn,
.question-edit-container .expand-choice-btn,
.question-edit-container .expand-sa-btn {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  color: #0f2a44;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
}
.question-create-container .expand-choice-btn:hover,
.question-create-container .expand-sa-btn:hover,
.question-edit-container .expand-choice-btn:hover,
.question-edit-container .expand-sa-btn:hover {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.question-create-container .expand-choice-btn i,
.question-create-container .expand-sa-btn i,
.question-edit-container .expand-choice-btn i,
.question-edit-container .expand-sa-btn i {
  font-size: 0.9em;
}
.question-create-container .quiz-ai-inline,
.question-edit-container .quiz-ai-inline {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #dce5ee;
  border-radius: 0.5em;
  background: #eef2f7;
}
.question-create-container .quiz-ai-rough-ideas,
.question-edit-container .quiz-ai-rough-ideas {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #dce5ee;
  border-radius: 4px;
}
.question-create-container .quiz-ai-rough-ideas > label,
.question-edit-container .quiz-ai-rough-ideas > label {
  display: block;
  margin-bottom: 0.5rem;
}
.question-create-container .quiz-ai-rough-ideas .quiz-ai-textarea,
.question-edit-container .quiz-ai-rough-ideas .quiz-ai-textarea {
  min-height: 80px;
}
.question-create-container .quiz-ai-row,
.question-edit-container .quiz-ai-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.question-create-container .quiz-ai-status,
.question-edit-container .quiz-ai-status {
  font-size: 0.9em;
}
.question-create-container .quiz-ai-result,
.question-edit-container .quiz-ai-result {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  margin-bottom: 0.75rem;
}
.question-create-container .quiz-ai-result-header,
.question-edit-container .quiz-ai-result-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 0.35rem;
  gap: 1rem;
}
.question-create-container .quiz-ai-result-header div,
.question-edit-container .quiz-ai-result-header div {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5rem;
}
.question-create-container .quiz-ai-textarea,
.question-edit-container .quiz-ai-textarea {
  width: 100%;
  min-height: 200px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 13px;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  resize: vertical;
  background: white;
  color: #0f2a44;
}

.inline-expanded-wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.inline-expanded-wrapper .markdown-toolbar-mini {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 2px;
  padding: 0.4rem;
  background: #eef2f7;
  border: 1px solid #193b5c;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.inline-expanded-wrapper .markdown-toolbar-mini .toolbar-btn {
  padding: 0.3rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 3px;
  color: #0f2a44;
  font-size: 0.85rem;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.inline-expanded-wrapper .markdown-toolbar-mini .toolbar-btn:hover {
  background: #193b5c;
  color: white;
}
.inline-expanded-wrapper .markdown-toolbar-mini .toolbar-btn i {
  width: 1em;
  text-align: center;
}
.inline-expanded-wrapper .inline-expanded-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 300px;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid #193b5c;
  border-radius: 0 0 4px 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: inherit;
  background: white;
  color: #0f2a44;
}
.inline-expanded-wrapper .inline-expanded-textarea:focus {
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.15);
          box-shadow: 0 0 0 2px rgba(25, 59, 92, 0.15);
}
.inline-expanded-wrapper .inline-expanded-textarea::-webkit-input-placeholder {
  color: #8aa5c0;
}
.inline-expanded-wrapper .inline-expanded-textarea::-moz-placeholder {
  color: #8aa5c0;
}
.inline-expanded-wrapper .inline-expanded-textarea:-ms-input-placeholder {
  color: #8aa5c0;
}
.inline-expanded-wrapper .inline-expanded-textarea::placeholder {
  color: #8aa5c0;
}
.inline-expanded-wrapper .inline-expanded-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: end;
          justify-content: flex-end;
  margin-top: 0.5rem;
}
.inline-expanded-wrapper .inline-expanded-actions .collapse-editor-btn {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  color: #0f2a44;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.inline-expanded-wrapper .inline-expanded-actions .collapse-editor-btn:hover {
  background: #193b5c;
  color: white;
  border-color: #193b5c;
}
.inline-expanded-wrapper .inline-expanded-actions .collapse-editor-btn i {
  font-size: 0.85em;
}

.quiz-manage-page {
  max-width: 1200px;
  margin: 0 auto;
}
.quiz-manage-page .manage-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 2rem;
}
.quiz-manage-page .manage-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.quiz-manage-page .manage-tabs a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: #eef2f7;
}
.quiz-manage-page .manage-tabs a.active {
  background: #193b5c;
  color: white;
}
.quiz-manage-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.quiz-manage-page .stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
}
.quiz-manage-page .stat-value {
  font-size: 2rem;
  font-weight: bold;
}
.quiz-manage-page .stat-label {
  color: #527291;
}
.quiz-manage-page .attempts-table {
  width: 100%;
}

#search-quiz,
#search-question {
  width: 100%;
  height: 2.3em;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.no-quizzes {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 4px;
}

.list-contest .participate-button {
  text-align: right;
  margin-top: 0.5em;
}

.quiz-attempt-list-page {
  font-size: 15px;
}
.quiz-attempt-list-page .attempt-stats {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 2em;
  margin-bottom: 1em;
  padding: 1em;
  background: white;
  border-radius: 4px;
}
.quiz-attempt-list-page .attempt-stats .stat-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
}
.quiz-attempt-list-page .attempt-stats .stat-label {
  font-size: 0.9em;
  color: #527291;
}
.quiz-attempt-list-page .attempt-stats .stat-value {
  font-size: 1.5em;
  font-weight: bold;
}
.quiz-attempt-list-page .attempt-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.8em 1em;
  background: white;
  border-radius: 4px;
  margin-bottom: 0.5em;
  gap: 1em;
}
.quiz-attempt-list-page .attempt-row:hover {
  background: rgb(247.35, 247.35, 247.35);
}
.quiz-attempt-list-page .attempt-number {
  font-weight: bold;
  min-width: 50px;
}
.quiz-attempt-list-page .attempt-time {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  font-size: 0.9em;
}
.quiz-attempt-list-page .attempt-time .time-secondary {
  color: #527291;
}
.quiz-attempt-list-page .attempt-score {
  font-weight: bold;
  min-width: 100px;
  text-align: right;
}
.quiz-attempt-list-page .attempt-score.perfect {
  color: #5cb85c;
}
.quiz-attempt-list-page .attempt-score.good {
  color: #5bc0de;
}
.quiz-attempt-list-page .attempt-score.average {
  color: #f0ad4e;
}
.quiz-attempt-list-page .attempt-score.poor {
  color: #d9534f;
}
.quiz-attempt-list-page .attempt-status {
  min-width: 100px;
}
.quiz-attempt-list-page .attempt-actions {
  min-width: 100px;
  text-align: right;
}
.quiz-attempt-list-page .empty-state {
  text-align: center;
  padding: 2em;
  background: white;
  border-radius: 4px;
  border: 1px solid #dce5ee;
}
.quiz-attempt-list-page .empty-state .empty-icon {
  color: #527291;
}

.question-analysis-page .stats-summary {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-analysis-page .stat-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  min-width: 150px;
}
.question-analysis-page .stat-card .value {
  font-size: 1.5rem;
  font-weight: bold;
}
.question-analysis-page .stat-card .label {
  color: #527291;
  font-size: 0.9rem;
}
.question-analysis-page .question-stat-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.question-analysis-page .question-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
     -moz-box-align: start;
          align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dce5ee;
}
.question-analysis-page .question-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-right: 0.75rem;
}
.question-analysis-page .stats-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 3rem;
  margin-bottom: 1.5rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-analysis-page .stats-row .stat {
  min-width: 100px;
}
.question-analysis-page .stats-row .stat-value {
  font-size: 1.3rem;
  font-weight: bold;
}
.question-analysis-page .stats-row .stat-label {
  color: #527291;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.question-analysis-page .choice-distribution {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dce5ee;
}
.question-analysis-page .choice-distribution strong {
  display: block;
  margin-bottom: 1rem;
}
.question-analysis-page .choice-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-bottom: 0.75rem;
}
.question-analysis-page .choice-label {
  width: 50px;
  font-weight: bold;
}
.question-analysis-page .choice-bar-container {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  background: #eef2f7;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 1rem;
}
.question-analysis-page .choice-bar-fill {
  height: 100%;
  background: #193b5c;
}
.question-analysis-page .choice-bar-fill.correct {
  background: #5cb85c;
}
.question-analysis-page .choice-percentage {
  width: 80px;
  text-align: right;
  font-size: 0.9em;
}

.question-bank-list-page #search-question {
  width: 100%;
  height: 2.3em;
}
.question-bank-list-page .question-table td,
.question-bank-list-page .question-table th {
  vertical-align: middle;
}
.question-bank-list-page .question-table th {
  padding: 0;
}
.question-bank-list-page .question-table .question-visibility {
  width: 50px;
  text-align: center;
}
.question-bank-list-page .question-table .question-type {
  width: 140px;
}
.question-bank-list-page .question-table .question-tags {
  max-width: 200px;
}
.question-bank-list-page .question-table .question-actions {
  width: 80px;
  text-align: right;
}
.question-bank-list-page .tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #eef2f7;
  border-radius: 3px;
  font-size: 0.8rem;
  margin: 0.1rem;
}
.question-bank-list-page .no-questions {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 4px;
}
.question-bank-list-page .no-questions .empty-icon {
  color: #527291;
}

.multiline-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.choice-content {
  display: block;
}
.choice-content p {
  margin-top: 0;
  margin-bottom: 0.5em;
}
.choice-content p:last-child {
  margin-bottom: 0;
}
.choice-content code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.9em;
}
.choice-content .MathJax, .choice-content .katex {
  font-size: 1em;
}

.help-description {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #527291;
}

.pagination-wrapper {
  margin-top: 10px;
}

.empty-message {
  text-align: center;
  padding: 2em;
}

.question-detail-page {
  background: white;
  padding: 1.5em 2em;
  border-radius: 0.5em;
}
.question-detail-page h2.content-title {
  margin: 0 0 0.5rem 0;
}
.question-detail-page .question-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.75em;
  margin-top: 0;
  margin-bottom: 1rem;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.question-detail-page .question-meta .type-tag {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  background: #527291;
  color: white;
}
.question-detail-page .question-meta .visibility-tag {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
}
.question-detail-page .question-meta .visibility-tag.public {
  background: #5cb85c;
  color: white;
}
.question-detail-page .question-meta .visibility-tag.private {
  background: #f0ad4e;
  color: white;
}
.question-detail-page .question-section {
  margin-bottom: 1rem;
}
.question-detail-page .question-section h3 {
  color: #193b5c;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.75em;
  border-bottom: 1px solid #dce5ee;
  padding-bottom: 0.5em;
}
.question-detail-page .question-section ul {
  margin: 0;
  padding-left: 1.5em;
}
.question-detail-page .question-section li {
  margin-bottom: 0.3em;
}
.question-detail-page .choice-display-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  margin-bottom: 0.75em;
  gap: 0.5em;
}
.question-detail-page .choice-display-item .choice-display-id {
  font-weight: bold;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  min-width: 1.5em;
}
.question-detail-page .choice-display-item .choice-display-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
}
.question-detail-page .choice-display-item .choice-display-content > p:first-child,
.question-detail-page .choice-display-item .choice-display-content > *:first-child {
  margin-top: 0;
}
.question-detail-page .choice-display-item .choice-display-content p:last-child {
  margin-bottom: 0;
}
.question-detail-page .choice-display-item .choice-display-content p {
  margin-top: 0;
  margin-bottom: 0.5em;
}
.question-detail-page .choice-display-item .choice-display-content p:last-child {
  margin-bottom: 0;
}
.question-detail-page .sa-config-display p {
  margin: 0.3em 0;
}
.question-detail-page .question-actions {
  margin-top: 1rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 0.5em;
}
.question-detail-page .question-actions .action-btn {
  padding: 0.5em 1em;
}

.quiz-grade-page h2 {
  margin-top: 0;
  margin-bottom: 1em;
}
.quiz-grade-page h2 i {
  margin-right: 0.3em;
}
.quiz-grade-page .grade-filters {
  margin-bottom: 1.5em;
  padding: 1em;
  background: #eef2f7;
  border-radius: 8px;
}
.quiz-grade-page .grade-filters .inline-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 1em;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-grade-page .grade-filters .filter-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.5em;
}
.quiz-grade-page .grade-filters .filter-group label {
  font-weight: 600;
  white-space: nowrap;
}
.quiz-grade-page .attempt-number {
  color: #0f2a44;
  opacity: 0.6;
  font-size: 0.9em;
}

.quiz-import-page {
  background: white;
  padding: 1.5em 2em;
  border-radius: 0.5em;
}
.quiz-import-page .content-title {
  margin-bottom: 15px;
}
.quiz-import-page .import-upload-area {
  border: 2px dashed #dce5ee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
  -webkit-transition: border-color 0.2s;
  -moz-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
.quiz-import-page .import-upload-area:hover {
  border-color: #193b5c;
}
.quiz-import-page .import-upload-area input[type=file] {
  margin: 8px 0;
}
.quiz-import-page .import-field-meta {
  font-size: 0.85em;
  opacity: 0.7;
}
.quiz-import-page .import-disclaimer {
  margin-top: 5px;
}
.quiz-import-page .import-status {
  margin: 15px 0;
  padding: 12px 15px;
  border-radius: 6px;
  display: none;
  border: 1px solid #dce5ee;
}
.quiz-import-page .import-status.show {
  display: block;
}
.quiz-import-page .import-status.analyzing {
  border-left: 4px solid #193b5c;
}
.quiz-import-page .import-status.done {
  border-left: 4px solid green;
}
.quiz-import-page .import-status.error {
  border-left: 4px solid #dc2626;
}
.quiz-import-page .import-results {
  display: none;
}
.quiz-import-page .import-results.show {
  display: block;
}
.quiz-import-page .import-summary-box {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}
.quiz-import-page .import-summary-row {
  padding: 4px 0;
}
.quiz-import-page .import-shared-settings {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 15px;
  padding: 10px 15px;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  margin-bottom: 15px;
}
.quiz-import-page .import-shared-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 15px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.quiz-import-page .import-shared-actions .action-btn {
  margin-left: auto;
}
.quiz-import-page .import-title-prefix-field {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 2px;
  margin-right: 1em;
}
.quiz-import-page .import-title-prefix-field .import-title-prefix-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
}
.quiz-import-page .import-title-prefix-field .import-title-prefix-row input {
  max-width: 220px;
}
.quiz-import-page .import-title-prefix-preview {
  opacity: 0.75;
  margin-right: 4px;
  white-space: nowrap;
  font-weight: bold;
}
.quiz-import-page .import-checkbox-label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.quiz-import-page .import-question-card {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
}
.quiz-import-page .import-question-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 10px 15px;
  gap: 10px;
  cursor: pointer;
}
.quiz-import-page .import-question-header:hover {
  background: #eef2f7;
}
.quiz-import-page .import-chevron {
  width: 14px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.6;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -moz-transition: transform 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
}
.quiz-import-page .import-question-num {
  font-weight: bold;
  min-width: 30px;
  opacity: 0.7;
}
.quiz-import-page .import-question-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.95em;
  background: transparent;
  color: inherit;
}
.quiz-import-page .import-question-body {
  display: none;
  padding: 10px 15px 15px;
  border-top: 1px solid #dce5ee;
  color: inherit;
}
.quiz-import-page .import-question-body.show {
  display: block;
}
.quiz-import-page .import-question-body.question-create-container {
  background: transparent;
  padding: 10px 15px 15px;
  border-radius: 0;
}
.quiz-import-page .import-field-row {
  margin-bottom: 10px;
}
.quiz-import-page .import-field-row label {
  display: block;
  font-weight: bold;
  font-size: 0.85em;
  margin-bottom: 4px;
  opacity: 0.8;
}
.quiz-import-page .import-field-row select,
.quiz-import-page .import-field-row textarea {
  width: 100%;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: inherit;
}
.quiz-import-page .import-field-row textarea {
  resize: vertical;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.9em;
}
.quiz-import-page .import-no-answers {
  opacity: 0.7;
  font-style: italic;
  font-size: 0.9em;
}
.quiz-import-page .import-no-answers-hint {
  opacity: 0.6;
  font-size: 0.85em;
  margin-bottom: 4px;
}
.quiz-import-page .import-content-editor .wmd-wrapper {
  margin-bottom: 0;
}
.quiz-import-page .import-content-editor .wmd-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 1em;
}
.quiz-import-page .import-content-editor .dmmd-preview {
  margin-top: 4px;
}
.quiz-import-page .import-content-editor .dmmd-preview-content {
  min-height: 40px;
  padding: 8px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
}
.quiz-import-page .import-choice-editor-container .choice-editor {
  margin-top: 4px;
}
.quiz-import-page .import-choice-editor-container .choice-text-input {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}
.quiz-import-page .import-sa-answers {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 6px;
}
.quiz-import-page .import-sa-answer-input {
  padding: 4px 10px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 0.9em;
  background: transparent;
  color: inherit;
  min-width: 120px;
}
.quiz-import-page .import-sa-add-btn {
  padding: 4px 10px;
  border: 1px dashed #dce5ee;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
}
.quiz-import-page .import-sa-add-btn:hover {
  opacity: 1;
  border-color: #193b5c;
}
.quiz-import-page .import-create-btn {
  white-space: nowrap;
}
.quiz-import-page .import-created-link {
  color: #5cb85c;
  font-weight: bold;
  font-size: 0.9em;
  white-space: nowrap;
}
.quiz-import-page .question-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: bold;
  white-space: nowrap;
  color: #fff;
}
.quiz-import-page .question-type-badge.badge-MC {
  background: #193b5c;
}
.quiz-import-page .question-type-badge.badge-MA {
  background: #14314c;
}
.quiz-import-page .question-type-badge.badge-TF {
  background: #5cb85c;
}
.quiz-import-page .question-type-badge.badge-SA {
  background: #f59e0b;
}
.quiz-import-page .question-type-badge.badge-ES {
  background: #0f2a44;
}
.quiz-import-page .import-quiz-section {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  margin-top: 20px;
}
.quiz-import-page .import-quiz-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 12px 15px;
  cursor: pointer;
}
.quiz-import-page .import-quiz-header:hover {
  background: #eef2f7;
}
.quiz-import-page .import-quiz-header i {
  width: 15px;
  text-align: center;
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  -moz-transition: transform 0.2s, -moz-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s, -moz-transform 0.2s;
}
.quiz-import-page .import-quiz-body {
  display: none;
  padding: 12px 15px 15px;
  border-top: 1px solid #dce5ee;
}
.quiz-import-page .import-quiz-body.show {
  display: block;
}
.quiz-import-page .import-form-row {
  margin-bottom: 10px;
}
.quiz-import-page .import-form-row label {
  display: block;
  font-weight: bold;
  font-size: 0.85em;
  margin-bottom: 4px;
}
.quiz-import-page .import-form-row .required {
  color: #dc2626;
}
.quiz-import-page .import-form-row input[type=text],
.quiz-import-page .import-form-row input[type=number],
.quiz-import-page .import-form-row textarea {
  width: 100%;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  padding: 6px 10px;
  background: transparent;
  color: inherit;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
.quiz-import-page .import-form-row input[type=number] {
  width: 120px;
}
.quiz-import-page .import-form-row-inline {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  gap: 15px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-bottom: 10px;
}
.quiz-import-page .import-form-row-inline .import-form-row {
  margin-bottom: 0;
}
.quiz-import-page .import-field-error {
  border-color: #dc2626 !important;
}
.quiz-import-page #quiz-create-status {
  margin-top: 10px;
  font-size: 0.9em;
}

.theme-settings-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.theme-section {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.theme-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #0f2a44;
  border-bottom: 1px solid #dce5ee;
  padding-bottom: 10px;
}
.theme-section h3 i {
  margin-right: 8px;
}
.theme-section .section-label {
  font-weight: bold;
  margin-bottom: 10px;
  color: #0f2a44;
}
.theme-section .section-description {
  color: #527291;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.mode-toggle {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 15px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.mode-toggle .mode-option {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 20px 40px;
  border: 2px solid #dce5ee;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: #fff;
}
.mode-toggle .mode-option:hover {
  border-color: #193b5c;
}
.mode-toggle .mode-option.active {
  border-color: #193b5c;
  background: rgb(126.4358974359, 173.9487179487, 220.0641025641);
}
.mode-toggle .mode-option i {
  font-size: 2em;
  margin-bottom: 10px;
  color: #0f2a44;
}
.mode-toggle .mode-option span {
  color: #0f2a44;
}
.mode-toggle .mode-option.mode-option-small {
  padding: 12px 25px;
}
.mode-toggle .mode-option.mode-option-small i {
  font-size: 1.4em;
  margin-bottom: 6px;
}
.mode-toggle .mode-option.mode-option-small span {
  font-size: 0.9em;
}

.current-background-preview {
  margin-bottom: 20px;
}
.current-background-preview img {
  max-width: 300px;
  max-height: 150px;
  border-radius: 10px;
  border: 1px solid #dce5ee;
  object-fit: cover;
}

.background-actions {
  margin-bottom: 20px;
}
.background-actions .inline-form {
  display: inline-block;
}
.background-actions .action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sample-backgrounds-section {
  margin-bottom: 20px;
}
.sample-backgrounds-section .no-samples-message {
  color: #527291;
  font-style: italic;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.background-card-form {
  display: contents;
}

.background-card {
  display: block;
  width: 100%;
  border: 2px solid #dce5ee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0;
  text-align: left;
}
.background-card:hover {
  border-color: #193b5c;
  -webkit-transform: scale(1.02);
     -moz-transform: scale(1.02);
          transform: scale(1.02);
}
.background-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.background-card .bg-name {
  padding: 8px;
  text-align: center;
  background: #f1f5f9;
  font-size: 0.85em;
  color: #0f2a44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-upload-inline {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 10px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #dce5ee;
}
.admin-upload-inline input[type=file] {
  padding: 5px;
  font-size: 0.9em;
}
.admin-upload-inline .secondary-btn {
  background: #f1f5f9;
  color: #0f2a44;
}
.admin-upload-inline .secondary-btn:hover {
  background: rgb(223.15, 232.25, 241.35);
}

.admin-samples-manager {
  margin-top: 15px;
  padding: 15px;
  background: rgba(240, 173, 78, 0.1);
  border: 1px dashed #d97706;
  border-radius: 10px;
}
.admin-samples-manager .admin-bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.admin-samples-manager .admin-bg-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.admin-samples-manager .admin-bg-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}
.admin-samples-manager .admin-bg-item .delete-bg-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}
.admin-samples-manager .admin-bg-item .delete-bg-btn:hover {
  background: rgb(178.25, 28.75, 28.75);
}

.custom-upload-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dce5ee;
}
.custom-upload-section .custom-upload-form {
  margin-top: 10px;
}
.custom-upload-section .upload-hint {
  margin-top: 10px;
  font-size: 0.85em;
  color: #527291;
}
.custom-upload-section .upload-submit-btn {
  margin-top: 10px;
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.effect-form {
  display: contents;
}

.effect-option {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 12px;
  border: 2px solid #dce5ee;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: #fff;
  width: 100%;
}
.effect-option:hover {
  border-color: #193b5c;
}
.effect-option.selected {
  border-color: #193b5c;
  background: rgb(126.4358974359, 173.9487179487, 220.0641025641);
}
.effect-option .effect-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  margin-bottom: 8px;
}
.effect-option .effect-icon i {
  font-size: 1.2em;
  color: #0f2a44;
}
.effect-option span {
  color: #0f2a44;
  font-size: 0.85em;
  text-align: center;
}

@media (max-width: 600px) {
  .theme-settings-page {
    padding: 10px;
  }
  .mode-toggle .mode-option.mode-option-small {
    padding: 10px 20px;
  }
  .background-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .effects-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .admin-samples-manager .admin-bg-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}
/**
 * Problem Author Chatbot Styles
 * Uses SCSS variables for dark mode compatibility
 */
.chatbot-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  height: -moz-calc(100vh - 90px);
  height: calc(100vh - 90px);
  min-height: 300px;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #eef2f7;
  overflow: hidden;
}

.chatbot-messages {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 16px;
}
.chatbot-messages .message {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 12px;
  max-width: 85%;
}
.chatbot-messages .message.user {
  -webkit-align-self: flex-end;
          align-self: flex-end;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
     -moz-box-orient: horizontal;
     -moz-box-direction: reverse;
          flex-direction: row-reverse;
}
.chatbot-messages .message.user .message-avatar {
  background: #193b5c;
  color: white;
}
.chatbot-messages .message.user .message-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chatbot-messages .message.user .message-body .message-content {
  background: #193b5c;
  color: white;
  border-radius: 16px 16px 4px 16px;
}
.chatbot-messages .message.user .message-body .message-content .content-description,
.chatbot-messages .message.user .message-body .message-content .content-description *,
.chatbot-messages .message.user .message-body .message-content .md-typeset,
.chatbot-messages .message.user .message-body .message-content .md-typeset * {
  color: white !important;
}
.chatbot-messages .message.user .message-body .message-content code {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}
.chatbot-messages .message.user .message-body .message-content pre {
  background: rgba(0, 0, 0, 0.3) !important;
}
.chatbot-messages .message.user .message-body .message-content pre code {
  background: transparent !important;
}
.chatbot-messages .message.assistant {
  -webkit-align-self: flex-start;
          align-self: flex-start;
}
.chatbot-messages .message.assistant .message-avatar {
  background: #f1f5f9;
}
.chatbot-messages .message.assistant .message-body .message-content {
  background: #f1f5f9;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid #dce5ee;
}
.chatbot-messages .message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  font-size: 14px;
}
.chatbot-messages .message-body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}
.chatbot-messages .message-body .message-delete-btn {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #dce5ee;
  background: #eef2f7;
  color: #0f2a44;
  cursor: pointer;
  padding: 0;
  font-size: 10px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  z-index: 1;
  opacity: 0.6;
  -webkit-transition: opacity 0.15s, color 0.15s;
  -moz-transition: opacity 0.15s, color 0.15s;
  transition: opacity 0.15s, color 0.15s;
}
.chatbot-messages .message-body .message-delete-btn:hover {
  opacity: 1;
  color: #dc2626;
  border-color: #dc2626;
}
.chatbot-messages .message:hover .message-delete-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.chatbot-messages .message.user .message-body .message-delete-btn {
  right: auto;
  left: -8px;
}
.chatbot-messages .message.streaming .message-content::after {
  content: "◍";
  -webkit-animation: blink-cursor 0.8s infinite;
     -moz-animation: blink-cursor 0.8s infinite;
          animation: blink-cursor 0.8s infinite;
  opacity: 0.7;
}
.chatbot-messages .message-content {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.chatbot-messages .message-content .content-description {
  margin: 0;
}
.chatbot-messages .tool-calls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.chatbot-messages .tool-calls .tool-badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid #dce5ee;
  cursor: help;
}
.chatbot-messages .tool-calls .tool-badge i {
  font-size: 10px;
  opacity: 0.7;
}
.chatbot-messages .typing-indicator .message-content {
  padding: 12px 18px;
}
.chatbot-messages .typing-indicator .typing-dots {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  gap: 4px;
}
.chatbot-messages .typing-indicator .typing-dots span {
  -webkit-animation: typing-dot 1.4s infinite;
     -moz-animation: typing-dot 1.4s infinite;
          animation: typing-dot 1.4s infinite;
  opacity: 0.3;
}
.chatbot-messages .typing-indicator .typing-dots span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
     -moz-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.chatbot-messages .typing-indicator .typing-dots span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
     -moz-animation-delay: 0.4s;
          animation-delay: 0.4s;
}
.chatbot-messages .tool-working-indicator {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 0;
  color: #193b5c;
  font-size: 0.85em;
  opacity: 0.85;
}
.chatbot-messages .tool-working-indicator .fa-cog {
  font-size: 1em;
}

@-webkit-keyframes typing-dot {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

@-moz-keyframes typing-dot {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

@keyframes typing-dot {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}
@-webkit-keyframes blink-cursor {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
}
@-moz-keyframes blink-cursor {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes blink-cursor {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
}
.welcome-message {
  text-align: center;
  padding: 40px 20px;
  -webkit-align-self: center;
          align-self: center;
  max-width: 400px;
}
.welcome-message .welcome-icon {
  font-size: 48px;
  color: #193b5c;
  margin-bottom: 16px;
}
.welcome-message h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
}
.welcome-message p {
  margin: 8px 0;
  opacity: 0.8;
}
.welcome-message ul {
  text-align: left;
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}
.welcome-message ul li {
  padding: 6px 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
}
.welcome-message ul li i {
  color: #193b5c;
  font-size: 12px;
}
.welcome-message .welcome-hint {
  font-style: italic;
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

.chatbot-input-area {
  border-top: 1px solid #dce5ee;
  background: #f1f5f9;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

.chat-status {
  display: none;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  opacity: 0.7;
  border-bottom: 1px solid #dce5ee;
}

.chatbot-input {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
}
.chatbot-input textarea {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  resize: none;
  border: 1px solid #dce5ee;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  min-height: 40px;
  max-height: 150px;
  background: #eef2f7;
}
.chatbot-input textarea:focus {
  outline: none;
  border-color: #193b5c;
}
.chatbot-input textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chatbot-input textarea::-webkit-input-placeholder {
  opacity: 0.5;
}
.chatbot-input textarea::-moz-placeholder {
  opacity: 0.5;
}
.chatbot-input textarea:-ms-input-placeholder {
  opacity: 0.5;
}
.chatbot-input textarea::placeholder {
  opacity: 0.5;
}
.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.chatbot-input button i {
  margin: 0;
}
.chatbot-input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chatbot-input #clear-chat-btn {
  background: transparent;
  border: 1px solid #dce5ee;
  color: inherit;
  opacity: 0.6;
}
.chatbot-input #clear-chat-btn:hover {
  opacity: 1;
  border-color: #dc2626;
  color: #dc2626;
}
.chatbot-input .model-selector {
  position: relative;
}
.chatbot-input .model-selector #model-btn {
  width: auto;
  border-radius: 20px;
  padding: 0 12px;
  gap: 6px;
  background: transparent;
  border: 1px solid #dce5ee;
  color: inherit;
  font-size: 12px;
}
.chatbot-input .model-selector #model-btn .model-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chatbot-input .model-selector #model-btn .fa-caret-down {
  font-size: 10px;
  opacity: 0.6;
}
.chatbot-input .model-selector #model-btn:hover {
  border-color: #193b5c;
  color: #193b5c;
}
.chatbot-input .model-selector .model-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  -webkit-box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 100;
  overflow: hidden;
}
.chatbot-input .model-selector .model-dropdown.show {
  display: block;
}
.chatbot-input .model-selector .model-dropdown .model-option {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  -webkit-transition: background 0.15s;
  -moz-transition: background 0.15s;
  transition: background 0.15s;
}
.chatbot-input .model-selector .model-dropdown .model-option .fa-check {
  width: 14px;
  opacity: 0;
  color: #193b5c;
}
.chatbot-input .model-selector .model-dropdown .model-option:hover {
  background: #f1f5f9;
}
.chatbot-input .model-selector .model-dropdown .model-option.active .fa-check {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chatbot-container {
    height: -moz-calc(100vh - 70px);
    height: calc(100vh - 70px);
    min-height: 250px;
  }
  .chatbot-messages .message {
    max-width: 90%;
  }
  .welcome-message {
    padding: 20px;
  }
  .welcome-message .welcome-icon {
    font-size: 36px;
  }
}
.package-import-page .import-upload-area {
  border: 2px dashed #dce5ee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
  -webkit-transition: border-color 0.2s;
  -moz-transition: border-color 0.2s;
  transition: border-color 0.2s;
}
.package-import-page .import-upload-area:hover {
  border-color: #193b5c;
}
.package-import-page .import-status {
  margin: 15px 0;
  padding: 12px 15px;
  border-radius: 6px;
  display: none;
  border: 1px solid #dce5ee;
}
.package-import-page .import-status.show {
  display: block;
}
.package-import-page .import-status.analyzing {
  border-left: 4px solid #193b5c;
}
.package-import-page .import-status.done {
  border-left: 4px solid green;
}
.package-import-page .import-status.error {
  border-left: 4px solid #dc2626;
}
.package-import-page .import-field {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  margin: 10px 0;
  overflow: hidden;
}
.package-import-page .import-field-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  padding: 10px 15px;
  gap: 10px;
}
.package-import-page .import-field-title-area {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  cursor: pointer;
  padding: 2px 0;
}
.package-import-page .import-field-title-area:hover {
  opacity: 0.8;
}
.package-import-page .import-field-title {
  font-weight: bold;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
}
.package-import-page .import-field-title i {
  width: 20px;
  text-align: center;
}
.package-import-page .import-field-meta {
  font-size: 0.85em;
  opacity: 0.7;
}
.package-import-page .import-summary-box {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}
.package-import-page .import-summary-row {
  padding: 4px 0;
}
.package-import-page .import-summary-label {
  font-weight: bold;
  display: inline-block;
  min-width: 80px;
}
.package-import-page .import-summary-notes {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #dce5ee;
  font-size: 0.9em;
  opacity: 0.8;
  font-style: italic;
}
.package-import-page .import-field-body {
  display: none;
  padding: 0 15px 15px;
  border-top: 1px solid #dce5ee;
}
.package-import-page .import-field-body.show {
  display: block;
}
.package-import-page .import-field-preview {
  max-height: 300px;
  overflow-y: auto;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #dce5ee;
}
.package-import-page .import-results {
  display: none;
}
.package-import-page .import-results.show {
  display: block;
}
.package-import-page .import-applied {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  color: green;
  font-weight: bold;
}

@-webkit-keyframes rank-up-flash {
  0% {
    background-color: rgba(76, 175, 80, 0.35);
  }
  100% {
    background-color: transparent;
  }
}

@-moz-keyframes rank-up-flash {
  0% {
    background-color: rgba(76, 175, 80, 0.35);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes rank-up-flash {
  0% {
    background-color: rgba(76, 175, 80, 0.35);
  }
  100% {
    background-color: transparent;
  }
}
@-webkit-keyframes new-solve-pulse {
  0% {
    background-color: rgba(255, 193, 7, 0.45);
  }
  50% {
    background-color: rgba(255, 193, 7, 0.15);
  }
  100% {
    background-color: transparent;
  }
}
@-moz-keyframes new-solve-pulse {
  0% {
    background-color: rgba(255, 193, 7, 0.45);
  }
  50% {
    background-color: rgba(255, 193, 7, 0.15);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes new-solve-pulse {
  0% {
    background-color: rgba(255, 193, 7, 0.45);
  }
  50% {
    background-color: rgba(255, 193, 7, 0.15);
  }
  100% {
    background-color: transparent;
  }
}
#users-table tbody tr.rank-up {
  -webkit-animation: rank-up-flash 3s ease-out forwards;
     -moz-animation: rank-up-flash 3s ease-out forwards;
          animation: rank-up-flash 3s ease-out forwards;
}

#users-table tbody td.new-solve {
  -webkit-animation: new-solve-pulse 3s ease-out forwards;
     -moz-animation: new-solve-pulse 3s ease-out forwards;
          animation: new-solve-pulse 3s ease-out forwards;
}

.fav-star {
  cursor: pointer;
  font-size: 1em;
  vertical-align: middle;
  opacity: 0;
  width: 0;
  display: inline-block;
  overflow: hidden;
  -webkit-transition: opacity 0.15s, width 0.15s;
  -moz-transition: opacity 0.15s, width 0.15s;
  transition: opacity 0.15s, width 0.15s;
}
.fav-star.fav-active {
  color: #f5a623;
  opacity: 1;
  width: 0.7em;
}

#users-table tbody tr:hover .fav-star {
  opacity: 0.4;
  width: 0.7em;
}
#users-table tbody tr:hover .fav-star:hover {
  opacity: 0.7;
}
#users-table tbody tr:hover .fav-star.fav-active {
  opacity: 1;
}

#users-table tbody tr.fav-row {
  background-color: rgba(245, 166, 35, 0.12);
}

#live-toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: column-reverse;
     -moz-box-orient: vertical;
     -moz-box-direction: reverse;
          flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  max-height: 80vh;
  overflow: hidden;
}

.live-toast {
  pointer-events: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
     -moz-box-align: stretch;
          align-items: stretch;
  min-width: 280px;
  max-width: 380px;
  border-radius: 6px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  -webkit-transform: translateX(100px);
     -moz-transform: translateX(100px);
          transform: translateX(100px);
  -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s ease, -webkit-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  -moz-transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), -moz-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}
.live-toast.toast-visible {
  opacity: 1;
  -webkit-transform: translateX(0);
     -moz-transform: translateX(0);
          transform: translateX(0);
}
.live-toast.toast-exit {
  opacity: 0;
  -webkit-transform: translateX(80px);
     -moz-transform: translateX(80px);
          transform: translateX(80px);
  -webkit-transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
  transition: opacity 0.4s ease, -webkit-transform 0.4s ease;
  -moz-transition: opacity 0.4s ease, transform 0.4s ease, -moz-transform 0.4s ease;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition: opacity 0.4s ease, transform 0.4s ease, -webkit-transform 0.4s ease, -moz-transform 0.4s ease;
}
.live-toast .toast-problem {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 8px 14px;
  font-size: 1.15em;
  font-weight: 700;
  color: #fff;
  min-width: 44px;
  letter-spacing: 0.5px;
}
.live-toast .toast-body {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  background: #fff;
  font-size: 0.9em;
}
.live-toast .toast-user {
  font-weight: 600;
  color: #0f2a44;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.live-toast .toast-score {
  color: #193b5c;
  font-size: 0.95em;
  margin-left: auto;
  white-space: nowrap;
  font-weight: 500;
}
.live-toast .toast-rank {
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
}
.live-toast.toast-ac .toast-problem {
  background: -webkit-linear-gradient(315deg, #43a047, #2e7d32);
  background: -moz-linear-gradient(315deg, #43a047, #2e7d32);
  background: linear-gradient(135deg, #43a047, #2e7d32);
}
.live-toast.toast-ac .toast-score {
  color: #2e7d32;
  font-weight: 600;
}
.live-toast.toast-partial .toast-problem {
  background: -webkit-linear-gradient(315deg, #fb8c00, #ef6c00);
  background: -moz-linear-gradient(315deg, #fb8c00, #ef6c00);
  background: linear-gradient(135deg, #fb8c00, #ef6c00);
}
.live-toast.toast-partial .toast-score {
  color: #e65100;
  font-weight: 600;
}
.live-toast.toast-down .toast-problem {
  background: -webkit-linear-gradient(315deg, #e53935, #c62828);
  background: -moz-linear-gradient(315deg, #e53935, #c62828);
  background: linear-gradient(135deg, #e53935, #c62828);
}
.live-toast.toast-down .toast-score {
  color: #c62828;
  font-weight: 600;
}
.live-toast.toast-frozen .toast-problem {
  background: -webkit-linear-gradient(315deg, #42a5f5, #1976d2);
  background: -moz-linear-gradient(315deg, #42a5f5, #1976d2);
  background: linear-gradient(135deg, #42a5f5, #1976d2);
}
.live-toast.toast-frozen .toast-score {
  color: #1565c0;
  font-weight: 600;
}

.toast-rank-up {
  color: #2e7d32;
}

.toast-rank-down {
  color: #c62828;
}

.resolver-page {
  font-family: "Inter", "Noto Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}
.resolver-page .resolver-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 10px;
  padding: 14px 16px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 247, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid #dce5ee;
  margin: -4px -4px 16px;
  border-radius: 0 0 12px 12px;
}
.resolver-page .resolver-controls .action-btn {
  padding: 0.45em 1em;
  font-size: 0.85em;
  border-radius: 8px;
}
.resolver-page .resolver-controls kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 0.7em;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-left: 4px;
  line-height: 1.4;
  vertical-align: middle;
}
.resolver-page .resolver-speed-control {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: #0f2a44;
}
.resolver-page .resolver-speed-control label {
  font-weight: 500;
  opacity: 0.7;
}
.resolver-page .resolver-speed-control input[type=range] {
  width: 80px;
  accent-color: #193b5c;
}
.resolver-page .resolver-speed-control input[type=number] {
  border: 1px solid #dce5ee;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.95em;
  text-align: center;
}
.resolver-page .resolver-speed-control #resolver-speed-label {
  font-weight: 600;
  min-width: 24px;
}
.resolver-page .resolver-toggle {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 5px;
  font-size: 0.85em;
  cursor: pointer;
  white-space: nowrap;
  color: #0f2a44;
  font-weight: 500;
  opacity: 0.8;
}
.resolver-page .resolver-toggle input[type=checkbox] {
  accent-color: #193b5c;
}
.resolver-page .resolver-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #dce5ee;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.resolver-page .resolver-table-wrapper::-webkit-scrollbar {
  display: none;
}
.resolver-page #resolver-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.resolver-page #resolver-table thead {
  background: rgb(233.86, 239.9, 245.94);
}
.resolver-page #resolver-table thead th {
  font-weight: 700;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 10px 8px;
  color: #0f2a44;
  border-bottom: 2px solid #dce5ee;
}
.resolver-page #resolver-table tbody tr {
  -webkit-transition: background-color 0.4s ease;
  -moz-transition: background-color 0.4s ease;
  transition: background-color 0.4s ease;
}
.resolver-page #resolver-table tbody tr:hover {
  background-color: rgba(25, 59, 92, 0.04);
}
.resolver-page #resolver-table td {
  padding: 6px 6px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(220, 229, 238, 0.5);
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}
.resolver-page #resolver-table .resolver-rank-col,
.resolver-page #resolver-table .resolver-rank-cell {
  width: 44px;
  text-align: center;
  font-weight: 600;
  color: #0f2a44;
}
.resolver-page #resolver-table .resolver-user-col,
.resolver-page #resolver-table .resolver-user-cell {
  text-align: left;
  min-width: 150px;
}
.resolver-page #resolver-table .resolver-user-cell a {
  font-weight: 600;
}
.resolver-page #resolver-table .resolver-user-cell .resolver-user-details {
  font-size: 0.82em;
  line-height: 1.4;
  margin-top: 3px;
  color: #0f2a44;
  opacity: 0.65;
}
.resolver-page #resolver-table .resolver-user-cell .resolver-real-name {
  font-weight: 500;
}
.resolver-page #resolver-table .resolver-user-cell .resolver-school {
  margin-left: 4px;
}
.resolver-page #resolver-table .resolver-user-cell .resolver-school::before {
  content: "— ";
}
.resolver-page #resolver-table .resolver-problem-col {
  text-align: center;
  min-width: 40px;
  font-size: 0.85em;
}
.resolver-page #resolver-table .resolver-group-col {
  text-align: center;
  font-size: 0.85em;
  border-bottom: 1px solid #dce5ee;
}
.resolver-page #resolver-table .resolver-score-col,
.resolver-page #resolver-table .resolver-score-cell {
  text-align: center;
  font-weight: 600;
  min-width: 64px;
  color: #0f2a44;
}
.resolver-page #resolver-table .resolver-solving-time {
  font-size: 0.78em;
  font-weight: 400;
  color: #0f2a44;
  opacity: 0.6;
  margin-top: 2px;
}
.resolver-page .resolver-cell {
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82em;
  cursor: default;
  min-width: 36px;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
.resolver-page .resolver-cell.frozen {
  background: #607d8b;
  color: #fff;
  cursor: pointer;
}
.resolver-page .resolver-cell.frozen:hover {
  background: #546e7a;
}
.resolver-page .resolver-cell.frozen .frozen-score {
  font-size: 0.85em;
  opacity: 0.75;
}
.resolver-page .resolver-cell.frozen .frozen-indicator {
  font-weight: 800;
  font-size: 1.05em;
}
.resolver-page .resolver-cell.ac {
  background: #43a047;
  color: #fff;
}
.resolver-page .resolver-cell.partial, .resolver-page .resolver-cell.improved {
  background: #ef6c00;
  color: #fff;
}
.resolver-page .resolver-cell.wrong {
  background: #d32f2f;
  color: #fff;
}
.resolver-page .resolver-cell.resolver-empty {
  color: rgba(15, 42, 68, 0.25);
  font-weight: 400;
}
.resolver-page .resolver-cell.selected {
  outline: 3px solid #e040fb;
  outline-offset: -2px;
  -webkit-animation: cell-pulse 0.6s ease infinite;
     -moz-animation: cell-pulse 0.6s ease infinite;
          animation: cell-pulse 0.6s ease infinite;
  -webkit-transform: scale(1.06);
     -moz-transform: scale(1.06);
          transform: scale(1.06);
  z-index: 2;
  position: relative;
}
.resolver-page #resolver-table.resolver-has-subtasks .resolver-problem-col {
  min-width: 24px;
  font-size: 0.72em;
  padding: 6px 2px;
}
.resolver-page #resolver-table.resolver-has-subtasks .resolver-group-col {
  font-size: 0.8em;
  padding: 8px 4px;
}
.resolver-page #resolver-table.resolver-has-subtasks .resolver-cell {
  min-width: 24px;
  padding: 4px 2px;
  font-size: 0.72em;
}
.resolver-page .resolver-row-active {
  background-color: rgba(25, 59, 92, 0.12) !important;
  -webkit-box-shadow: inset 4px 0 0 #193b5c;
          box-shadow: inset 4px 0 0 #193b5c;
}
.resolver-page .resolver-rank-up {
  background-color: rgba(76, 175, 80, 0.2) !important;
}
.resolver-page .cell-reveal-anim {
  -webkit-animation: cell-reveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
     -moz-animation: cell-reveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
          animation: cell-reveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@-webkit-keyframes cell-reveal {
  0% {
    -webkit-transform: scale(1.4);
            transform: scale(1.4);
    opacity: 0;
  }
  60% {
    -webkit-transform: scale(0.95);
            transform: scale(0.95);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@-moz-keyframes cell-reveal {
  0% {
    -moz-transform: scale(1.4);
         transform: scale(1.4);
    opacity: 0;
  }
  60% {
    -moz-transform: scale(0.95);
         transform: scale(0.95);
    opacity: 1;
  }
  100% {
    -moz-transform: scale(1);
         transform: scale(1);
    opacity: 1;
  }
}
@keyframes cell-reveal {
  0% {
    -webkit-transform: scale(1.4);
       -moz-transform: scale(1.4);
            transform: scale(1.4);
    opacity: 0;
  }
  60% {
    -webkit-transform: scale(0.95);
       -moz-transform: scale(0.95);
            transform: scale(0.95);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
       -moz-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes cell-pulse {
  0%, 100% {
    outline-color: #e040fb;
  }
  50% {
    outline-color: rgba(224, 64, 251, 0.3);
  }
}
@-moz-keyframes cell-pulse {
  0%, 100% {
    outline-color: #e040fb;
  }
  50% {
    outline-color: rgba(224, 64, 251, 0.3);
  }
}
@keyframes cell-pulse {
  0%, 100% {
    outline-color: #e040fb;
  }
  50% {
    outline-color: rgba(224, 64, 251, 0.3);
  }
}
.resolver-page .resolver-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  z-index: 10000;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.resolver-page .resolver-overlay.resolver-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}
.resolver-page .resolver-overlay.resolver-overlay-visible .resolver-overlay-rank {
  -webkit-animation: overlay-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
     -moz-animation: overlay-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
          animation: overlay-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.resolver-page .resolver-overlay.resolver-overlay-visible .resolver-overlay-username {
  -webkit-animation: overlay-fade-up 0.5s 0.15s ease both;
     -moz-animation: overlay-fade-up 0.5s 0.15s ease both;
          animation: overlay-fade-up 0.5s 0.15s ease both;
}
.resolver-page .resolver-overlay.resolver-overlay-visible .resolver-overlay-name {
  -webkit-animation: overlay-fade-up 0.5s 0.25s ease both;
     -moz-animation: overlay-fade-up 0.5s 0.25s ease both;
          animation: overlay-fade-up 0.5s 0.25s ease both;
}
.resolver-page .resolver-overlay.resolver-overlay-visible .resolver-overlay-school {
  -webkit-animation: overlay-fade-up 0.5s 0.35s ease both;
     -moz-animation: overlay-fade-up 0.5s 0.35s ease both;
          animation: overlay-fade-up 0.5s 0.35s ease both;
}
.resolver-page .resolver-overlay .resolver-overlay-rank {
  font-size: 80px;
  font-weight: 900;
  background: -webkit-linear-gradient(315deg, #ffd700, #ffaa00);
  background: -moz-linear-gradient(315deg, #ffd700, #ffaa00);
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
.resolver-page .resolver-overlay .resolver-overlay-username {
  font-size: 32px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.resolver-page .resolver-overlay .resolver-overlay-name {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.resolver-page .resolver-overlay .resolver-overlay-school {
  font-size: 26px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}
@-webkit-keyframes overlay-pop-in {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@-moz-keyframes overlay-pop-in {
  0% {
    -moz-transform: scale(0.5);
         transform: scale(0.5);
    opacity: 0;
  }
  100% {
    -moz-transform: scale(1);
         transform: scale(1);
    opacity: 1;
  }
}
@keyframes overlay-pop-in {
  0% {
    -webkit-transform: scale(0.5);
       -moz-transform: scale(0.5);
            transform: scale(0.5);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
       -moz-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes overlay-fade-up {
  0% {
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@-moz-keyframes overlay-fade-up {
  0% {
    -moz-transform: translateY(20px);
         transform: translateY(20px);
    opacity: 0;
  }
  100% {
    -moz-transform: translateY(0);
         transform: translateY(0);
    opacity: 1;
  }
}
@keyframes overlay-fade-up {
  0% {
    -webkit-transform: translateY(20px);
       -moz-transform: translateY(20px);
            transform: translateY(20px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
.resolver-page:-webkit-full-screen {
  background: #eef2f7;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:-moz-full-screen {
  background: #eef2f7;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:-ms-fullscreen {
  background: #eef2f7;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:fullscreen {
  background: #eef2f7;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:-webkit-full-screen .resolver-controls {
  margin: 0 0 16px;
  border-radius: 12px;
  padding: 14px 20px;
}
.resolver-page:-moz-full-screen .resolver-controls {
  margin: 0 0 16px;
  border-radius: 12px;
  padding: 14px 20px;
}
.resolver-page:-ms-fullscreen .resolver-controls {
  margin: 0 0 16px;
  border-radius: 12px;
  padding: 14px 20px;
}
.resolver-page:fullscreen .resolver-controls {
  margin: 0 0 16px;
  border-radius: 12px;
  padding: 14px 20px;
}

.internal-table-scroll {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}
.internal-table-scroll table {
  table-layout: fixed;
  width: 100%;
}
.internal-table-scroll th,
.internal-table-scroll td {
  overflow-wrap: anywhere;
  vertical-align: top;
  word-break: break-word;
}
.internal-table-scroll code {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.internal-chat-moderation-page {
  max-width: 100%;
  min-width: 0;
}
.internal-chat-moderation-page .chat-moderation-controls {
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.internal-chat-moderation-page .chat-moderation-controls form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 4px;
}
.internal-chat-moderation-page .chat-moderation-table .chat-time-column {
  width: 8.5em;
}
.internal-chat-moderation-page .chat-moderation-table .chat-user-column,
.internal-chat-moderation-page .chat-moderation-table .chat-action-column,
.internal-chat-moderation-page .chat-moderation-table .chat-source-column {
  width: 7em;
}
.internal-chat-moderation-page .chat-moderation-table .chat-button-column {
  width: 6em;
}
.internal-chat-moderation-page .chat-pagination {
  margin-top: 12px;
}

.semantic-search-page .semantic-search-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.semantic-search-page .semantic-search-tab {
  background: white;
  border: 1px solid #dce5ee;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  padding: 8px 16px;
}
.semantic-search-page .semantic-search-tab.active {
  background: #eef2f7;
  border-bottom-color: #eef2f7;
  font-weight: bold;
}
.semantic-search-page .semantic-search-controls {
  margin: 0 0 16px;
}
.semantic-search-page .semantic-search-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 16px;
  background: #eef2f7;
  max-width: 64em;
}
.semantic-search-page .semantic-search-card h3 {
  margin-top: 0;
}
.semantic-search-page .semantic-search-card label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}
.semantic-search-page .semantic-search-card input,
.semantic-search-page .semantic-search-card select,
.semantic-search-page .semantic-search-card textarea {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  margin-bottom: 12px;
  width: 100%;
}
.semantic-search-page .semantic-search-card textarea {
  min-height: 9em;
  padding: 8px;
  resize: vertical;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea::-webkit-input-placeholder {
  color: #8aa5c0;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea::-moz-placeholder {
  color: #8aa5c0;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea:-ms-input-placeholder {
  color: #8aa5c0;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea::placeholder {
  color: #8aa5c0;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-query-card textarea {
  font-size: 1.05em;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .semantic-search-page .semantic-search-tabs {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 0;
  }
  .semantic-search-page .semantic-search-tab {
    border-radius: 0;
    text-align: left;
  }
}
.semantic-search-page .semantic-limit-row {
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.semantic-search-page .semantic-limit-row input {
  width: 5em;
}
.semantic-search-page .semantic-empty-state,
.semantic-search-page .semantic-results-table {
  display: none;
}
.semantic-search-page .semantic-result-name {
  color: #0f2a44;
  font-size: 0.9em;
  margin-top: 4px;
}
.semantic-search-page .semantic-type-tag {
  display: inline-block;
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  font-size: 0.8em;
  padding: 1px 5px;
  margin: 1px 2px 1px 0;
  white-space: nowrap;
}

.internal-duplicate-problems-page,
.internal-duplicate-problem-detail-page {
  max-width: 100%;
  min-width: 0;
}
.internal-duplicate-problems-page .duplicate-report-tabs,
.internal-duplicate-problem-detail-page .duplicate-report-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0;
}
.internal-duplicate-problems-page .duplicate-report-tab,
.internal-duplicate-problem-detail-page .duplicate-report-tab {
  background: white;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  padding: 8px 16px;
}
.internal-duplicate-problems-page .duplicate-report-tab.active,
.internal-duplicate-problem-detail-page .duplicate-report-tab.active {
  background: #eef2f7;
  font-weight: bold;
}
.internal-duplicate-problems-page .duplicate-report-controls,
.internal-duplicate-problems-page .duplicate-review-actions,
.internal-duplicate-problem-detail-page .duplicate-report-controls,
.internal-duplicate-problem-detail-page .duplicate-review-actions {
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
     -moz-box-align: end;
          align-items: flex-end;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.internal-duplicate-problems-page .duplicate-report-controls label,
.internal-duplicate-problems-page .duplicate-review-actions label,
.internal-duplicate-problem-detail-page .duplicate-report-controls label,
.internal-duplicate-problem-detail-page .duplicate-review-actions label {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  font-weight: bold;
  gap: 4px;
}
.internal-duplicate-problems-page .duplicate-report-controls input,
.internal-duplicate-problems-page .duplicate-review-actions input,
.internal-duplicate-problem-detail-page .duplicate-report-controls input,
.internal-duplicate-problem-detail-page .duplicate-review-actions input {
  max-width: 9em;
}
.internal-duplicate-problems-page .duplicate-candidates-table,
.internal-duplicate-problems-page .duplicate-dry-run-table,
.internal-duplicate-problems-page .duplicate-merge-history-table,
.internal-duplicate-problems-page .duplicate-verification-table,
.internal-duplicate-problem-detail-page .duplicate-candidates-table,
.internal-duplicate-problem-detail-page .duplicate-dry-run-table,
.internal-duplicate-problem-detail-page .duplicate-merge-history-table,
.internal-duplicate-problem-detail-page .duplicate-verification-table {
  margin-top: 12px;
  table-layout: fixed;
  width: 100%;
}
.internal-duplicate-problems-page .duplicate-candidates-table th, .internal-duplicate-problems-page .duplicate-candidates-table td,
.internal-duplicate-problems-page .duplicate-dry-run-table th,
.internal-duplicate-problems-page .duplicate-dry-run-table td,
.internal-duplicate-problems-page .duplicate-merge-history-table th,
.internal-duplicate-problems-page .duplicate-merge-history-table td,
.internal-duplicate-problems-page .duplicate-verification-table th,
.internal-duplicate-problems-page .duplicate-verification-table td,
.internal-duplicate-problem-detail-page .duplicate-candidates-table th,
.internal-duplicate-problem-detail-page .duplicate-candidates-table td,
.internal-duplicate-problem-detail-page .duplicate-dry-run-table th,
.internal-duplicate-problem-detail-page .duplicate-dry-run-table td,
.internal-duplicate-problem-detail-page .duplicate-merge-history-table th,
.internal-duplicate-problem-detail-page .duplicate-merge-history-table td,
.internal-duplicate-problem-detail-page .duplicate-verification-table th,
.internal-duplicate-problem-detail-page .duplicate-verification-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.internal-duplicate-problems-page .duplicate-table-details,
.internal-duplicate-problems-page .duplicate-error-text,
.internal-duplicate-problem-detail-page .duplicate-table-details,
.internal-duplicate-problem-detail-page .duplicate-error-text {
  line-break: anywhere;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
}
.internal-duplicate-problems-page .duplicate-error-text,
.internal-duplicate-problem-detail-page .duplicate-error-text {
  display: block;
}
.internal-duplicate-problems-page .duplicate-problem-name,
.internal-duplicate-problem-detail-page .duplicate-problem-name {
  color: #0f2a44;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.internal-duplicate-problem-detail-page .duplicate-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}
.internal-duplicate-problem-detail-page .duplicate-review-card {
  background: #eef2f7;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}
.internal-duplicate-problem-detail-page .duplicate-review-card h3 {
  margin-top: 0;
}
.internal-duplicate-problem-detail-page .duplicate-review-actions {
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
     -moz-box-align: stretch;
          align-items: stretch;
}
.internal-duplicate-problem-detail-page .duplicate-review-actions form {
  background: #f1f5f9;
  border: 1px solid #dce5ee;
  border-radius: 6px;
  padding: 12px;
}
.internal-duplicate-problem-detail-page .verification-passed {
  background: rgba(25, 59, 92, 0.12);
}
.internal-duplicate-problem-detail-page .verification-failed {
  background: rgba(220, 38, 38, 0.12);
}
.internal-duplicate-problem-detail-page .duplicate-merge-card {
  border-color: #dc2626;
}
.internal-duplicate-problem-detail-page .duplicate-false-positive-form {
  margin-top: 12px;
}
@media (max-width: 800px) {
  .internal-duplicate-problem-detail-page .duplicate-review-grid {
    grid-template-columns: 1fr;
  }
}

.auto-review-badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -moz-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.7em;
  margin-left: 0.4em;
  font-weight: 600;
  font-size: 0.95em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  -webkit-transition: background 0.15s ease;
  -moz-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.auto-review-badge i {
  font-size: 0.9em;
}
.auto-review-badge:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.06);
}

.auto-review-badge.auto-review-badge-pass {
  color: #2ca44a;
}

.auto-review-badge.auto-review-badge-fail,
.auto-review-badge.auto-review-badge-error {
  color: #dc2626;
}

.auto-review-badge.auto-review-badge-running,
.auto-review-badge.auto-review-badge-none {
  color: #0f2a44;
  opacity: 0.7;
}

.review-list-page .review-list-table {
  width: 100%;
  table-layout: fixed;
}
.review-list-page .review-list-table th, .review-list-page .review-list-table td {
  padding: 0.7em 0.8em;
  vertical-align: middle;
}
.review-list-page .review-list-table .col-name {
  width: 28%;
}
.review-list-page .review-list-table .col-authors {
  width: 18%;
}
.review-list-page .review-list-table .col-verdict {
  width: 13%;
}
.review-list-page .review-list-table .col-public {
  width: 16%;
}
.review-list-page .review-list-table .col-when {
  width: 16%;
}
.review-list-page .review-list-table tbody td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}
.review-list-page .review-list-table .review-author-list {
  font-size: 0.9em;
  color: #193b5c;
}
.review-list-page .review-list-table .review-author-list .user, .review-list-page .review-list-table .review-author-list > a, .review-list-page .review-list-table .review-author-list > span {
  display: block;
  margin-bottom: 0.15em;
}
.review-list-page .review-list-table .review-when {
  color: #527291;
  font-size: 0.9em;
}
.review-list-page .verdict-pill, .review-list-page .publish-pill {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}
.review-list-page .verdict-pill .fa, .review-list-page .publish-pill .fa {
  margin-right: 0.25em;
}
.review-list-page .verdict-pill.verdict-pass {
  background: #e7f6ec;
  color: #14532d;
}
.review-list-page .verdict-pill.verdict-fail, .review-list-page .verdict-pill.verdict-error {
  background: #fdecec;
  color: #991b1b;
}
.review-list-page .verdict-pill.verdict-running {
  background: #e5f7f9;
  color: #0e5c61;
}
.review-list-page .verdict-pill.verdict-none {
  background: #f1f5f9;
  color: #193b5c;
}
.review-list-page .publish-pill {
  border-radius: 8px;
  font-weight: 500;
}
.review-list-page .publish-pill.publish-pending {
  background: #fef6e7;
  color: #92400e;
}
.review-list-page .publish-pill.publish-approved {
  background: #e7f6ec;
  color: #14532d;
}
.review-list-page .publish-pill.publish-rejected {
  background: #fdecec;
  color: #991b1b;
}
.review-list-page .publish-pill.publish-none {
  opacity: 0.55;
}
.review-list-page .publish-pill.publish-in-contest {
  background: #e5f7f9;
  color: #0e5c61;
}
.review-list-page a.publish-pill {
  text-decoration: none;
}
.review-list-page a.publish-pill:hover {
  opacity: 0.85;
}
.review-list-page .review-list-pagination {
  padding-top: 1.5em;
  padding-bottom: 2em;
}
.review-list-page .review-empty {
  text-align: center;
  padding: 3em 1em;
  color: #527291;
}
.review-list-page .review-empty .fa {
  font-size: 3em;
  margin-bottom: 0.5em;
  display: block;
}

.right-sidebar #search-author,
.right-sidebar #verdict,
.right-sidebar #public {
  width: 100%;
}
.right-sidebar .select2-container {
  width: 100% !important;
}

#doc-reader {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  height: -moz-calc(100vh - 68px);
  height: calc(100vh - 68px);
  border-top: 1px solid #dce5ee;
}
#doc-reader .doc-reader-outline {
  width: 300px;
  min-width: 200px;
  max-width: 40%;
  overflow-y: auto;
  border-right: 1px solid #dce5ee;
  background: #eef2f7;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
}
#doc-reader .doc-reader-outline .doc-reader-outline-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #dce5ee;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef2f7;
}
#doc-reader .doc-reader-outline .doc-reader-outline-title {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  font-weight: bold;
  color: #0f2a44;
}
#doc-reader .doc-reader-outline .doc-reader-outline-empty {
  padding: 12px;
  color: #0f2a44;
  opacity: 0.7;
}
#doc-reader .doc-reader-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #0f2a44;
  padding: 4px 6px;
  border-radius: 4px;
}
#doc-reader .doc-reader-icon-btn:hover {
  background: #f1f5f9;
}
#doc-reader .doc-reader-tree {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
#doc-reader .doc-reader-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 14px;
}
#doc-reader .doc-reader-tree li > .doc-reader-node {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 4px;
  padding: 4px 8px;
  cursor: pointer;
  color: #0f2a44;
  border-radius: 4px;
}
#doc-reader .doc-reader-tree li > .doc-reader-node:hover {
  background: #f1f5f9;
}
#doc-reader .doc-reader-tree li.active > .doc-reader-node {
  background: #193b5c;
  color: #fff;
}
#doc-reader .doc-reader-tree .doc-reader-toggle {
  width: 14px;
  display: inline-block;
  text-align: center;
}
#doc-reader .doc-reader-tree .doc-reader-label {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#doc-reader .doc-reader-tree .doc-reader-node-copy {
  margin-left: auto;
  opacity: 0;
}
#doc-reader .doc-reader-tree li > .doc-reader-node:hover .doc-reader-node-copy {
  opacity: 0.6;
}
#doc-reader .doc-reader-main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
  min-width: 0;
  position: relative;
}
#doc-reader .doc-reader-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
#doc-reader .doc-reader-reopen {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: #193b5c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
#doc-reader.outline-collapsed .doc-reader-outline {
  display: none;
}
#doc-reader.outline-collapsed .doc-reader-reopen {
  display: block;
}

@media (max-width: 799px) {
  #doc-reader {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    height: auto;
  }
  #doc-reader .doc-reader-outline {
    width: 100%;
    max-width: none;
    max-height: 220px;
  }
  #doc-reader .doc-reader-frame {
    height: 70vh;
  }
}
.doc-reader-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  -webkit-transform: translateX(-50%);
     -moz-transform: translateX(-50%);
          transform: translateX(-50%);
  background: #193b5c;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
}

.library-browse,
.library-catalog {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px;
}

.library-breadcrumbs {
  margin-bottom: 16px;
  font-size: 1.05em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 4px;
}
.library-breadcrumbs a {
  color: #193b5c;
  text-decoration: none;
}
.library-breadcrumbs a:hover {
  text-decoration: underline;
}
.library-breadcrumbs .sep {
  color: #0f2a44;
  opacity: 0.5;
  margin: 0 6px;
}
.library-breadcrumbs .current {
  color: #0f2a44;
  font-weight: bold;
}

.library-topbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  margin-bottom: 10px;
}
.library-topbar .library-heading {
  margin: 0;
  font-size: 1.6em;
  font-weight: bold;
  color: #0f2a44;
}
.library-topbar .library-topbar-right {
  margin-left: auto;
}

.library-hr {
  margin: 0 0 16px;
  border: none;
  border-top: 1px solid #dce5ee;
}

.library-empty {
  text-align: center;
  color: #0f2a44;
  opacity: 0.7;
  padding: 48px 0;
}

.library-toolbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 8px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.library-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  padding: 18px 10px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #eef2f7;
  text-align: center;
}
.library-item:hover {
  border-color: #193b5c;
}
.library-item .library-item-link {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  width: 100%;
  color: #0f2a44;
  text-decoration: none;
}
.library-item .library-item-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92em;
}
.library-item .fa-folder {
  color: #193b5c;
}
.library-item .library-item-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.library-item .btn-action {
  padding: 5px 9px;
  border: 1px solid #dce5ee;
  border-radius: 4px;
  background: #eef2f7;
  color: #0f2a44;
  cursor: pointer;
  text-decoration: none;
}
.library-item .btn-action:hover {
  background: #f1f5f9;
}
.library-item .btn-action.lib-download, .library-item .btn-action.lib-rename {
  color: #5bc0de;
}
.library-item .btn-action.lib-download:hover, .library-item .btn-action.lib-rename:hover {
  border-color: #5bc0de;
}
.library-item .btn-action.lib-copylink {
  color: #28a745;
}
.library-item .btn-action.lib-copylink:hover {
  border-color: #28a745;
}
.library-item .btn-action.btn-danger {
  color: #dc2626;
}
.library-item .btn-action.btn-danger:hover {
  border-color: #dc2626;
}

.library-catalog .library-catalog-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  margin-bottom: 12px;
}
.library-catalog .library-catalog-header h3 {
  margin: 0;
  color: #0f2a44;
}
.library-catalog .catalog-tree,
.library-catalog .catalog-children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.library-catalog .catalog-children {
  padding-left: 22px;
}
.library-catalog .catalog-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
  gap: 8px;
  padding: 6px 6px;
  border-radius: 4px;
  font-size: 1.12em;
}
.library-catalog .catalog-row .fa-folder {
  color: #193b5c;
}
.library-catalog .catalog-toggle {
  cursor: pointer;
}
.library-catalog .catalog-toggle:hover {
  background: #f1f5f9;
}
.library-catalog .catalog-chevron {
  width: 12px;
  font-size: 0.8em;
  color: #0f2a44;
  opacity: 0.7;
}
.library-catalog .catalog-chevron-spacer {
  display: inline-block;
  width: 12px;
}
.library-catalog .catalog-name {
  color: #0f2a44;
  text-decoration: none;
}
.library-catalog a.catalog-name {
  color: #193b5c;
}
.library-catalog a.catalog-name:hover {
  text-decoration: underline;
}
