@charset "UTF-8";
@-ms-viewport {
  min-width: 480px;
  max-width: device-width;
}
@viewport {
  min-width: 480px;
  max-width: device-width;
}
a {
  color: #1958c1;
}
a:hover {
  color: #0645ad;
}
a:active {
  color: #9c3706;
}

img {
  max-width: 100%;
}

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

.full {
  width: 100% !important;
}

.action-btn {
  background: -moz-linear-gradient(315deg, #9c3706 0%, rgb(195.2888888889, 68.8518518519, 7.5111111111) 100%);
  background: linear-gradient(135deg, #9c3706 0%, rgb(195.2888888889, 68.8518518519, 7.5111111111) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.8em 1.4em;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s 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;
  gap: 0.6em;
  -webkit-box-shadow: 0 3px 10px rgba(156, 55, 6, 0.25);
          box-shadow: 0 3px 10px rgba(156, 55, 6, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(rgba(255, 255, 255, 0.15)), to(transparent));
  background: -moz-linear-gradient(left, transparent, rgba(255, 255, 255, 0.15), transparent);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  -webkit-transition: left 0.5s ease;
  -moz-transition: left 0.5s ease;
  transition: left 0.5s ease;
}
.action-btn:hover {
  background: -moz-linear-gradient(315deg, rgb(180.5555555556, 63.6574074074, 6.9444444444) 0%, rgb(214.9333333333, 75.7777777778, 8.2666666667) 100%);
  background: linear-gradient(135deg, rgb(180.5555555556, 63.6574074074, 6.9444444444) 0%, rgb(214.9333333333, 75.7777777778, 8.2666666667) 100%);
  color: white;
  text-decoration: none;
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 5px 15px rgba(156, 55, 6, 0.35);
          box-shadow: 0 5px 15px rgba(156, 55, 6, 0.35);
}
.action-btn:hover::before {
  left: 100%;
}
.action-btn:active {
  -webkit-transform: translateY(0);
     -moz-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: 0 3px 8px rgba(156, 55, 6, 0.3);
          box-shadow: 0 3px 8px rgba(156, 55, 6, 0.3);
}
.action-btn i.fa {
  font-size: 1em;
  opacity: 0.9;
}
.action-btn:disabled, .action-btn.disabled {
  background: -moz-linear-gradient(315deg, darkgray 0%, gray 100%) !important;
  background: linear-gradient(135deg, darkgray 0%, gray 100%) !important;
  color: #f1efef !important;
  cursor: not-allowed;
  -webkit-transform: none !important;
     -moz-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
          box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
}
.action-btn:disabled::before, .action-btn.disabled::before {
  display: none;
}
.action-btn:disabled:hover, .action-btn.disabled:hover {
  background: -moz-linear-gradient(315deg, darkgray 0%, gray 100%) !important;
  background: linear-gradient(135deg, darkgray 0%, gray 100%) !important;
  -webkit-transform: none !important;
     -moz-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
          box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
}
.action-btn:disabled:active, .action-btn.disabled:active {
  -webkit-transform: none !important;
     -moz-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
          box-shadow: 0 2px 6px rgba(128, 128, 128, 0.25) !important;
}

.action-btn.background-green {
  background: -moz-linear-gradient(315deg, #28a745 0%, rgb(47.884057971, 199.915942029, 82.6) 100%);
  background: linear-gradient(135deg, #28a745 0%, rgb(47.884057971, 199.915942029, 82.6) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
          box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
}
.action-btn.background-green:hover {
  background: -moz-linear-gradient(315deg, rgb(44.9275362319, 187.5724637681, 77.5) 0%, rgb(59.9246376812, 208.2753623188, 93.8) 100%);
  background: linear-gradient(135deg, rgb(44.9275362319, 187.5724637681, 77.5) 0%, rgb(59.9246376812, 208.2753623188, 93.8) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35);
          box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35);
}
.action-btn.background-green:active {
  -webkit-box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
          box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.action-btn.background-red {
  background: -moz-linear-gradient(315deg, #ae0000 0%, rgb(214.8, 0, 0) 100%);
  background: linear-gradient(135deg, #ae0000 0%, rgb(214.8, 0, 0) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(174, 0, 0, 0.25);
          box-shadow: 0 3px 10px rgba(174, 0, 0, 0.25);
}
.action-btn.background-red:hover {
  background: -moz-linear-gradient(315deg, rgb(199.5, 0, 0) 0%, rgb(235.2, 0, 0) 100%);
  background: linear-gradient(135deg, rgb(199.5, 0, 0) 0%, rgb(235.2, 0, 0) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(174, 0, 0, 0.35);
          box-shadow: 0 5px 15px rgba(174, 0, 0, 0.35);
}
.action-btn.background-red:active {
  -webkit-box-shadow: 0 3px 8px rgba(174, 0, 0, 0.3);
          box-shadow: 0 3px 8px rgba(174, 0, 0, 0.3);
}

.action-btn.background-blue {
  background: -moz-linear-gradient(315deg, #007bff 0%, rgb(40.8, 144.12, 255) 100%);
  background: linear-gradient(135deg, #007bff 0%, rgb(40.8, 144.12, 255) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
          box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
}
.action-btn.background-blue:hover {
  background: -moz-linear-gradient(315deg, rgb(25.5, 136.2, 255) 0%, rgb(61.2, 154.68, 255) 100%);
  background: linear-gradient(135deg, rgb(25.5, 136.2, 255) 0%, rgb(61.2, 154.68, 255) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(0, 123, 255, 0.35);
          box-shadow: 0 5px 15px rgba(0, 123, 255, 0.35);
}
.action-btn.background-blue:active {
  -webkit-box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
          box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.action-btn.background-gray {
  background: -moz-linear-gradient(315deg, #6c757d 0%, rgb(128.2832618026, 137.4068669528, 145.5167381974) 100%);
  background: linear-gradient(135deg, #6c757d 0%, rgb(128.2832618026, 137.4068669528, 145.5167381974) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(108, 117, 125, 0.25);
          box-shadow: 0 3px 10px rgba(108, 117, 125, 0.25);
}
.action-btn.background-gray:hover {
  background: -moz-linear-gradient(315deg, rgb(120.0751072961, 129.7896995708, 138.4248927039) 0%, rgb(139.2274678112, 147.5630901288, 154.9725321888) 100%);
  background: linear-gradient(135deg, rgb(120.0751072961, 129.7896995708, 138.4248927039) 0%, rgb(139.2274678112, 147.5630901288, 154.9725321888) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(108, 117, 125, 0.35);
          box-shadow: 0 5px 15px rgba(108, 117, 125, 0.35);
}
.action-btn.background-gray:active {
  -webkit-box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
          box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}

.action-btn.background-warning {
  background: -moz-linear-gradient(315deg, #ffc107 0%, rgb(255, 203.2, 47.8) 100%);
  background: linear-gradient(135deg, #ffc107 0%, rgb(255, 203.2, 47.8) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
          box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
  color: #212529;
}
.action-btn.background-warning:hover {
  background: -moz-linear-gradient(315deg, rgb(255, 199.375, 32.5) 0%, rgb(255, 208.3, 68.2) 100%);
  background: linear-gradient(135deg, rgb(255, 199.375, 32.5) 0%, rgb(255, 208.3, 68.2) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(255, 193, 7, 0.35);
          box-shadow: 0 5px 15px rgba(255, 193, 7, 0.35);
  color: #212529;
}
.action-btn.background-warning:active {
  -webkit-box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
          box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

.action-btn.background-theme {
  background: -moz-linear-gradient(315deg, #9c3706 0%, rgb(195.2888888889, 68.8518518519, 7.5111111111) 100%);
  background: linear-gradient(135deg, #9c3706 0%, rgb(195.2888888889, 68.8518518519, 7.5111111111) 100%);
  -webkit-box-shadow: 0 3px 10px rgba(156, 55, 6, 0.25);
          box-shadow: 0 3px 10px rgba(156, 55, 6, 0.25);
}
.action-btn.background-theme:hover {
  background: -moz-linear-gradient(315deg, rgb(180.5555555556, 63.6574074074, 6.9444444444) 0%, rgb(214.9333333333, 75.7777777778, 8.2666666667) 100%);
  background: linear-gradient(135deg, rgb(180.5555555556, 63.6574074074, 6.9444444444) 0%, rgb(214.9333333333, 75.7777777778, 8.2666666667) 100%);
  -webkit-box-shadow: 0 5px 15px rgba(156, 55, 6, 0.35);
          box-shadow: 0 5px 15px rgba(156, 55, 6, 0.35);
}
.action-btn.background-theme:active {
  -webkit-box-shadow: 0 3px 8px rgba(156, 55, 6, 0.3);
          box-shadow: 0 3px 8px rgba(156, 55, 6, 0.3);
}

.action-btn.small {
  padding: 0.5em 1em;
  font-size: 0.9em;
  border-radius: 8px;
  -webkit-box-shadow: 0 2px 6px rgba(156, 55, 6, 0.25);
          box-shadow: 0 2px 6px rgba(156, 55, 6, 0.25);
}
.action-btn.small:hover {
  -webkit-box-shadow: 0 3px 10px rgba(156, 55, 6, 0.35);
          box-shadow: 0 3px 10px rgba(156, 55, 6, 0.35);
}
.action-btn.small:active {
  -webkit-box-shadow: 0 2px 5px rgba(156, 55, 6, 0.3);
          box-shadow: 0 2px 5px rgba(156, 55, 6, 0.3);
}

.action-btn.large {
  padding: 1em 1.8em;
  font-size: 1.1em;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 12px rgba(156, 55, 6, 0.25);
          box-shadow: 0 4px 12px rgba(156, 55, 6, 0.25);
}
.action-btn.large:hover {
  -webkit-box-shadow: 0 6px 20px rgba(156, 55, 6, 0.35);
          box-shadow: 0 6px 20px rgba(156, 55, 6, 0.35);
}
.action-btn.large:active {
  -webkit-box-shadow: 0 4px 10px rgba(156, 55, 6, 0.3);
          box-shadow: 0 4px 10px rgba(156, 55, 6, 0.3);
}

.action-btn.outlined {
  background: transparent;
  border: 2px solid #9c3706;
  color: #9c3706;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.action-btn.outlined::before {
  display: none;
}
.action-btn.outlined:hover {
  background: rgba(156, 55, 6, 0.08);
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: none;
     -moz-transform: none;
          transform: none;
  color: #9c3706;
}
.action-btn.outlined:active {
  background: rgba(156, 55, 6, 0.15);
  -webkit-transform: scale(0.98);
     -moz-transform: scale(0.98);
          transform: scale(0.98);
  -webkit-box-shadow: none;
          box-shadow: none;
}

@media (max-width: 799px) {
  .action-btn {
    font-size: 0.9em;
    padding: 0.7em 1.2em;
    border-radius: 8px;
  }
  .action-btn:hover {
    -webkit-transform: none;
       -moz-transform: none;
            transform: none;
    -webkit-box-shadow: 0 4px 12px rgba(156, 55, 6, 0.3);
            box-shadow: 0 4px 12px rgba(156, 55, 6, 0.3);
  }
  .action-btn::before {
    display: none;
  }
  .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 {
  background: #28a745 !important;
  border: 1px solid #28a745 !important;
  color: white !important;
  border-radius: 40px !important;
  padding: 12px 18px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  -webkit-box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
          box-shadow: 0px 10px 20px -6px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  position: relative !important;
  -webkit-transition: all 0.3s ease !important;
  -moz-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
     -moz-box-align: center !important;
          align-items: center !important;
  gap: normal !important;
}
.submit-btn::before,
input[type=submit].submit-btn::before {
  display: none !important;
}
.submit-btn span,
input[type=submit].submit-btn span {
  font-size: 15px !important;
  margin-left: -25px !important;
  -webkit-transition: all 0.3s ease !important;
  -moz-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
}
.submit-btn .icon,
input[type=submit].submit-btn .icon {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 50px !important;
  bottom: 0 !important;
  background: #fff !important;
}
.submit-btn .icon i,
input[type=submit].submit-btn .icon i {
  font-size: 21px !important;
  color: #28a745 !important;
}
.submit-btn .icon.icon-round,
input[type=submit].submit-btn .icon.icon-round {
  border-radius: 50% !important;
}
.submit-btn:hover, .submit-btn:active, .submit-btn:focus,
input[type=submit].submit-btn:hover,
input[type=submit].submit-btn:active,
input[type=submit].submit-btn:focus {
  outline: none !important;
  background: #218838 !important;
  border-color: #218838 !important;
  color: white !important;
  text-decoration: none !important;
  -webkit-transform: none !important;
     -moz-transform: none !important;
          transform: none !important;
  -webkit-box-shadow: 0px 12px 25px -6px rgba(0, 0, 0, 0.18) !important;
          box-shadow: 0px 12px 25px -6px rgba(0, 0, 0, 0.18) !important;
}
.submit-btn:hover span, .submit-btn:active span, .submit-btn:focus span,
input[type=submit].submit-btn:hover span,
input[type=submit].submit-btn:active span,
input[type=submit].submit-btn:focus span {
  margin-left: -12px !important;
}
.submit-btn.btn-disabled,
input[type=submit].submit-btn.btn-disabled {
  background: gray !important;
  border-color: gray !important;
  color: #fff !important;
  cursor: not-allowed !important;
}
.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: gray !important;
  border-color: gray !important;
  color: #fff !important;
}
.submit-btn.btn-disabled:hover span, .submit-btn.btn-disabled:active span, .submit-btn.btn-disabled:focus span,
input[type=submit].submit-btn.btn-disabled:hover span,
input[type=submit].submit-btn.btn-disabled:active span,
input[type=submit].submit-btn.btn-disabled:focus span {
  margin-left: -25px !important;
}

table.sortable thead {
  background-color: #ededed;
  color: #666;
  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 #ccc;
  padding: 0;
}

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

th {
  vertical-align: middle;
}

.form-area {
  display: inline-block;
  background: #f1f2f2;
  padding: 5px 10px 10px 15px;
  border-radius: 0.5em;
  border: 1px solid #ccc;
}

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: 14px;
  line-height: 1.231;
  background: #f1f2f2;
  font-family: "Noto Sans", Arial, "Lucida Grande", sans-serif;
  color: #000;
  height: 100%;
  overflow-x: hidden;
}

.unselectable {
  cursor: default;
}

h1 {
  font-size: 5em;
  letter-spacing: -2px;
  margin: 0;
  padding: 0;
  line-height: 1em;
}

b {
  font-weight: bold;
}

h2 {
  font-weight: 400;
  font-size: 1.6em;
  border-radius: 0.5em;
  padding: 0;
  margin: 0;
}

h3 {
  font-weight: 400;
  font-size: 1.4em;
  border-radius: 0.5em;
  padding: 0;
  margin: 0;
}

h4 {
  font-size: 1.1em;
  padding: 0;
  margin: 0;
}

header {
  background: #111;
  color: #aaa;
  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, left bottom, from(lightgray), to(transparent));
  background: -moz-linear-gradient(lightgray, transparent);
  background: linear-gradient(lightgray, transparent);
}

#nav-container {
  background: white;
  height: 100%;
}

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

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: #FFF;
  text-transform: uppercase;
  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: black;
  font-weight: bold;
  font-size: initial;
}
nav ul li a:link,
nav ul li button:link {
  color: black;
}
nav ul li a:hover,
nav ul li button:hover {
  color: black;
  background: transparent;
  margin: 0;
}
nav ul li a.active,
nav ul li button.active {
  color: #9c3706;
  background: transparent;
  border-bottom: 3px solid #9c3706;
  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: 0;
  position: absolute;
  left: 5px;
  display: none;
  color: #fff;
  background: white;
  margin: 0 !important;
  -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
          box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
nav ul li ul li:hover {
  background: lightgray;
}
nav ul li ul li {
  display: block;
}
nav ul li ul li a {
  color: black !important;
}
nav ul li ul li a,
nav ul li ul li button {
  padding: 8px 20px 8px 8px !important;
  font-size: 0.8em;
  line-height: 18px;
  display: block;
  border-left: 4px solid black;
  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: 50px auto 1em auto;
  padding-top: 1em;
  width: 90%;
  height: 100%;
  min-height: 25em;
  display: block;
}
#content .title {
  color: #393630;
}

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

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

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

noscript #noscript {
  font-family: Arial, sans-serif;
  font-size: 111%;
  color: white;
  font-weight: bold;
  background: #ae0000;
  text-align: center;
  padding: 5px 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 100;
}

#announcement {
  font-family: Arial, sans-serif;
  font-size: 111%;
  color: white;
  font-weight: bold;
  background: #ae0000;
  text-align: center;
  max-width: 30%;
  position: fixed;
  border-radius: 0.5em;
  z-index: 100;
  bottom: -4px;
  right: -4px;
  padding: 5px 6px 6px 5px;
}
#announcement a {
  color: orange;
}

.time {
  color: #555;
}

.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: 0.5em;
  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 #ccc;
  border-left: 1px solid #ccc;
}

#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 #ccc;
  border-left: 1px solid #ccc;
}

#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: #9c3706;
}

#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 #ccc;
}
.dropdown-item i {
  width: 1.5em;
}

.dropdown-item:hover {
  color: #9c3706;
  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: monospace;
}

.sub-lang {
  color: black;
  font-size: x-small;
  margin-left: -12px;
  font-family: monospace;
  text-transform: uppercase;
}

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

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

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

.gray {
  color: gray;
}

.white {
  color: white;
}

.black {
  color: black;
}

.red {
  color: red;
}

.green {
  color: green;
}

.grayed {
  color: #666;
}

.darkcyan {
  color: darkcyan;
}

.peru {
  color: peru;
}

.blue {
  color: blue;
}

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

.background-d6e8f7 {
  background-color: #d6e8f7;
}

.background-bisque {
  background-color: bisque;
}

.background-royalblue {
  background-color: royalblue !important;
}

.background-green {
  background-color: #28a745 !important;
}

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

.background-footer {
  color: #808080;
}

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

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #9c3706;
  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: 2.5px;
  padding-bottom: 0.25em;
  display: block;
}

::-webkit-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #9c3706;
  opacity: 1;
  /* Firefox */
  text-align: center;
}

:-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #9c3706;
  opacity: 1;
  /* Firefox */
  text-align: center;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #9c3706;
  opacity: 1;
  /* Firefox */
  text-align: center;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #9c3706;
  text-align: center;
}

input::-webkit-input-placeholder {
  color: #9c3706;
  text-align: center;
}

input:-ms-input-placeholder {
  color: #9c3706;
  text-align: center;
}

input::placeholder {
  color: #9c3706;
  text-align: center;
}

::-webkit-input-placeholder {
  color: #9c3706;
  text-align: center;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #9c3706;
  text-align: center;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #9c3706;
  text-align: center;
}

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

.nav-fa-icon-active i {
  color: #9c3706;
  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: 6px;
  color: #333;
  text-decoration: none;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.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: #555;
}
.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: 4px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  object-fit: cover;
}

.left-sidebar-item:hover {
  background-color: #f8f8f2;
  cursor: pointer;
  color: #333;
}

.left-sidebar-item.active {
  background-color: #9c3706;
  color: #fff;
}
.left-sidebar-item.active .sidebar-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.left-sidebar-item.active:hover {
  background-color: #9c3706;
  color: #fff;
}

.sidebar-icon {
  color: #555;
}

.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: #666;
  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: 36px;
  }
  #content {
    margin-top: 36px;
  }
  #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: #00007d;
    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: #333;
    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 .nav-icon-link .nav-icon-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;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(156, 55, 6, 0.1);
  }
  #nav-list li .nav-icon-link .nav-icon-container i {
    font-size: 16px;
    color: #9c3706;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  #nav-list li .nav-icon-link::after {
    content: attr(data-tooltip);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }
  #nav-list li .nav-icon-link .nav-expand {
    margin-left: auto;
    color: #666;
    font-size: 12px;
  }
  #nav-list li .nav-icon-link:hover {
    background: rgba(156, 55, 6, 0.1);
    -webkit-transform: translateX(4px);
       -moz-transform: translateX(4px);
            transform: translateX(4px);
  }
  #nav-list li .nav-icon-link:hover .nav-icon-container {
    background: #9c3706;
  }
  #nav-list li .nav-icon-link:hover .nav-icon-container i {
    color: white;
    -webkit-transform: scale(1.1);
       -moz-transform: scale(1.1);
            transform: scale(1.1);
  }
  #nav-list li .nav-icon-link.active {
    background: rgba(156, 55, 6, 0.15);
  }
  #nav-list li .nav-icon-link.active .nav-icon-container {
    background: #9c3706;
  }
  #nav-list li .nav-icon-link.active .nav-icon-container i {
    color: white;
  }
  #nav-list li .nav-icon-link.active::after {
    color: #9c3706;
    font-weight: 600;
  }
  #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 #9c3706;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #555;
    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(156, 55, 6, 0.1);
    color: #9c3706;
  }
  #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: #333;
    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(156, 55, 6, 0.1);
    font-size: 16px;
    color: #9c3706;
    -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: #333;
    font-size: 14px;
    font-weight: 500;
  }
  #nav-list li.home-menu-item a:hover {
    background: rgba(156, 55, 6, 0.1);
    -webkit-transform: translateX(4px);
       -moz-transform: translateX(4px);
            transform: translateX(4px);
  }
  #nav-list li.home-menu-item a:hover::before {
    background: #9c3706;
    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(156, 55, 6, 0.15);
  }
  #nav-list li.home-menu-item a.active::before {
    background: #9c3706;
    color: white;
  }
  #nav-list li.home-menu-item a.active::after {
    color: #9c3706;
    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.2em 0.8em 0.2em;
    display: inline-block;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
            flex: 1;
    min-width: 5em;
    overflow-wrap: anywhere;
  }
  .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;
    overflow-x: auto;
  }
  .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: #f1f2f2;
  }
  .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: 60px;
    height: -moz-calc(100vh - 50px - 20px);
    height: calc(100vh - 50px - 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;
  }
  #nav-list li {
    text-transform: none;
    margin: 0;
  }
  #nav-list li.home-nav-element {
    margin-right: auto;
    padding-right: 2em;
  }
  #nav-list li.home-menu-item {
    display: none;
  }
  #nav-list li:not(.home-nav-element):not(.home-menu-item) {
    -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-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
  #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: black;
    font-weight: bold;
    font-size: initial;
  }
  #nav-list li a:not(.nav-icon-link):link,
  #nav-list li button:not(.nav-icon-link):link {
    color: black;
  }
  #nav-list li a:not(.nav-icon-link):hover,
  #nav-list li button:not(.nav-icon-link):hover {
    color: black;
    background: transparent;
    margin: 0;
  }
  #nav-list li a:not(.nav-icon-link).active,
  #nav-list li button:not(.nav-icon-link).active {
    color: #9c3706;
    background: transparent;
    border-bottom: 3px solid #9c3706;
    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;
    height: 100%;
    -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: #666;
    font-weight: normal;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
  }
  #nav-list li .nav-icon-link .nav-icon-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;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
  }
  #nav-list li .nav-icon-link .nav-icon-container i {
    font-size: 20px;
    color: #666;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  #nav-list li .nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.2);
    -webkit-transform: translateY(-2px);
       -moz-transform: translateY(-2px);
            transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  #nav-list li .nav-icon-link:hover .nav-icon-container i {
    color: #9c3706;
    -webkit-transform: scale(1.1);
       -moz-transform: scale(1.1);
            transform: scale(1.1);
  }
  #nav-list li .nav-icon-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    -webkit-transform: translateX(-50%);
       -moz-transform: translateX(-50%);
            transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    pointer-events: none;
  }
  #nav-list li .nav-icon-link:hover::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    -webkit-transform: translateX(-50%);
       -moz-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 1;
  }
  #nav-list li .nav-icon-link.active {
    background: transparent;
    border-bottom: 3px solid #9c3706;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  #nav-list li .nav-icon-link.active .nav-icon-container i {
    color: #9c3706;
  }
  #nav-list li .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
       -moz-transform: translateX(-50%);
            transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
  }
  #nav-list li .nav-dropdown .nav-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    -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: #f5f5f5;
    color: #9c3706;
  }
  #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: #f1f2f2;
  }
  #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: #f1f2f2;
  border-radius: 8px;
  border-left: 4px solid #9c3706;
}
.page-banner .page-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.3em 0;
  color: #111;
}
.page-banner .page-title a {
  color: inherit;
  text-decoration: none;
}
.page-banner .page-title a:hover {
  color: #9c3706;
}
.page-banner .page-subtitle {
  font-size: 0.9em;
  color: #4b5563;
}

.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: #f1f2f2;
}
.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 3px rgba(0, 0, 0, 0.08);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.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: #ededed;
}
.table th:first-child, .table td:first-child {
  border-width: 1px 1px 0 1px;
}
.table tr:last-child td {
  border-bottom: 1px solid #ccc;
}
.table thead th {
  vertical-align: middle;
}
.table th {
  height: 2em;
  color: #fff;
  background-color: #9c3706;
  border-color: #ccc;
  border-width: 1px 1px 0 0;
  border-style: solid;
  padding: 4px 10px;
  vertical-align: middle;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
}
.table td {
  border-color: #ccc;
  border-width: 1px 1px 0 0;
  border-style: solid;
  padding: 7px 5px;
  vertical-align: middle;
  text-align: center;
  overflow-wrap: break-word;
}

#users-table th a {
  color: #fff;
}

.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;
}

.AB {
  background-color: #CCC;
  color: black;
}

.AC {
  background-color: green;
  color: white;
}

._AC {
  background-color: greenyellow;
  color: black;
}

.WA {
  background-color: red;
  color: white;
}

.TLE, .MLE {
  background-color: #CCC;
  color: black;
}

.OLE, .IR, .RTE, .OTH {
  background-color: #FAB623;
  color: black;
}

.CE {
  background-color: #CCC;
  color: black;
}

.IE {
  background-color: red;
  color: black;
}

.QU, .G {
  background: white;
  color: black;
}

.judge-online {
  color: #44AD41;
}

.judge-offline {
  color: #DE2121;
}

.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 #9b9b9b;
  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: Maroon !important;
}
.middle-content .post .title a:hover {
  color: #c00000 !important;
}
.left-sidebar-item.active {
  color: white;
  font-weight: bold;
  background-color: #9c3706;
}
.left-sidebar-item.active .sidebar-icon {
  color: white;
}

.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: 1.25em 0 1.5em 0;
  text-align: center;
  border-bottom: 1px solid #ccc;
}
.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: #5b80b9 !important;
}
.blog-sidebox .contest .name a:hover {
  color: #0645ad !important;
}

.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 #ccc;
  font-size: 0.9em;
}
.sort-options select:focus {
  outline: none;
  border-color: #9c3706;
}

.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: -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-bottom: 1.4px solid lightgray;
  border-top: 1.4px solid lightgray;
  margin-bottom: 1.5em;
  padding: 1em 1.25em 0.5em 1.25em;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.blog-box .title {
  margin-bottom: 0.2em;
  font-weight: 500;
}

.blog-box:hover, .blog-box:not(.pre-expand-blog) {
  border-color: #8a8a8a;
  -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 2px rgba(0, 0, 0, 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: #0645ad;
}

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

.problem-feed-types {
  color: gray;
}

.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: black;
  font-size: 16px;
  font-weight: 700;
  padding: 0px 12px;
  margin-top: 5px;
  position: absolute;
  inset: 50% 0px 0px;
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(white));
  background: -moz-linear-gradient(transparent, white);
  background: linear-gradient(transparent, white);
  -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 16px;
}

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

.post-full .post-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-family: serif;
}
.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 #ccc;
}
.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: #6b7280;
  background: #f1f2f2;
  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: #374151;
}
.post-full .post-action-btn .badge {
  background: #9c3706;
  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;
  }
  .blog-box {
    border-left: 1.4px solid lightgray;
    border-right: 1.4px solid lightgray;
    border-radius: 16px;
  }
  .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: #333;
}
.feed-inline-header i {
  color: #9c3706;
  font-size: 1.1em;
}
.feed-inline-header a {
  margin-left: auto;
  font-size: 0.75em;
  font-weight: 500;
  color: #9c3706;
  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: #f1f2f2;
  border: 1px solid #e1e1e8;
  border-radius: 6px;
  text-decoration: none;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.feed-inline-item:hover {
  border-color: #9c3706;
}

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

.feed-inline-item-meta {
  font-size: 0.8em;
  color: #666;
  -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: #666;
  margin-bottom: 0.5em;
}
.feed-comment-reason i {
  color: #9c3706;
  margin-right: 0.3em;
}

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

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

.feed-comment-meta {
  font-size: 0.85em;
  color: #666;
  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 #ededed;
  text-decoration: none;
  color: #333;
}
.feed-list-row:last-child {
  border-bottom: none;
}
.feed-list-row:hover {
  color: #9c3706;
}

.feed-list-logo {
  height: 2em;
  width: 2em;
  border-radius: 4px;
  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: #666;
  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 #ededed;
}
.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: #666;
}

.welcome-banner {
  position: relative;
  padding: 1em 1.25em;
  margin-bottom: 1em;
  background: #fef9f7;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.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: #999;
  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 #ccc;
  border-radius: 40px;
  font-size: 0.85em;
  color: #555;
  text-decoration: none;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.welcome-pill:hover {
  border-color: #9c3706;
  color: #9c3706;
}
.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: #fef9f7;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.visitor-banner h3 {
  margin: 0;
  font-size: 1em;
}

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

.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: #9c3706;
  font-weight: 600;
  text-decoration: none;
}

.visitor-banner-signup {
  display: inline-block;
  padding: 0.4em 1em;
  background: #9c3706;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9em;
}
.visitor-banner-signup:hover {
  background: rgb(116.7111111111, 41.1481481481, 4.4888888889);
  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;
}

#problem-table th {
  white-space: nowrap;
}
#problem-table td.category {
  text-align: left;
  padding: 0 1em;
}
#problem-table td.problem {
  text-align: left;
  padding-left: 1em;
  width: 100%;
}
#problem-table td.pcode {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}
#problem-table td.pp {
  text-align: left;
  padding-left: 1em;
  width: 100%;
}
#problem-table td.users {
  text-align: left;
  padding: 0 1em;
  white-space: nowrap;
}
#problem-table td.types {
  text-align: left;
  padding: 0 1em;
}
#problem-table td.ac-rate {
  white-space: nowrap;
}
#problem-table td.points {
  white-space: nowrap;
}
#problem-table tr {
  -webkit-transition: background-color linear 0.2s;
  -moz-transition: background-color linear 0.2s;
  transition: background-color linear 0.2s;
}
#problem-table tr:hover {
  background: #eaeaea;
}

#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 .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: #f1f2f2;
  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: #f1f2f2;
  -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: #9c3706;
  width: 1.4em;
}
.info-float .link-row .badge {
  background: #ae0000;
  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 #ccc;
  margin: 0.5rem 0;
}
.info-float .problem-info-entry {
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.info-float .problem-info-entry i {
  color: #9c3706;
  width: 1.4em;
}
.info-float .problem-lang-limits {
  background: #f1f2f2;
  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 #ccc;
}
.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: #666;
}
.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: #9c3706;
}
.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: #555;
  padding: 0.3rem 0 0.3rem 1.4rem;
}

.dark-mode .info-float .sidebar-section, [data-theme=dark] .info-float .sidebar-section {
  background: #1f2937;
}
.dark-mode .info-float .link-row:hover, [data-theme=dark] .info-float .link-row:hover {
  background: #374151;
}
.dark-mode .info-float .problem-lang-limits, [data-theme=dark] .info-float .problem-lang-limits {
  background: #1f2937;
}
.dark-mode .info-float .problem-lang-limits .lang-limit, [data-theme=dark] .info-float .problem-lang-limits .lang-limit {
  border-bottom-color: #374151;
}
.dark-mode .info-float .problem-lang-limits .lang-limit .lang-tl, .dark-mode .info-float .problem-lang-limits .lang-limit .lang-ml, [data-theme=dark] .info-float .problem-lang-limits .lang-limit .lang-tl, [data-theme=dark] .info-float .problem-lang-limits .lang-limit .lang-ml {
  color: #9ca3af;
}
.dark-mode .info-float .toggled, [data-theme=dark] .info-float .toggled {
  color: #9ca3af;
}

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

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

#types {
  width: 100%;
}

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;
}

.solved-problem-color {
  color: #44AD41;
}

.unsolved-problem-color {
  color: #DE2121;
}

.attempted-problem-color {
  color: orange;
}

.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: #ccc;
  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-bar {
  float: right;
}
#problem_submit #submit-wrapper {
  margin-top: 0.7em;
}
#problem_submit #submit-wrapper #editor, #problem_submit #submit-wrapper #language {
  margin-top: 4px;
}
#problem_submit #output-only-upload {
  margin-top: 4px;
  padding: 1.5em 1em;
  border: 1px dashed #ccc;
  border-radius: 4px;
  text-align: center;
  background: #f1f2f2;
  color: #00007d;
  font-size: 1.05em;
  cursor: pointer;
}
#problem_submit #output-only-upload:hover {
  border-color: #00007d;
}
#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;
          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 :nth-child(6) {
    display: none;
  }
}
@media (max-width: 500px) {
  #problem-table tr :nth-child(4) {
    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: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  border: 1px dashed #ccc;
  border-radius: 3px;
  background: #f9f9f9;
}
.generator-args-icon:hover {
  color: #333;
  border-color: #999;
  background: #f0f0f0;
}

.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: #f1f2f2;
  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 #ccc;
  background: #f1f2f2;
  cursor: pointer;
  border-radius: 3px;
}
.generator-script-container .btn:hover,
.testcase-json-container .btn:hover {
  background: #ededed;
}

.textarea-with-lines {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.4;
}

#line-numbers,
#testcase-json-line-numbers {
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  color: #666;
  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 #ccc;
  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: -moz-linear-gradient(315deg, #e9ecef 0%, #d6d8db 100%);
  background: linear-gradient(135deg, #e9ecef 0%, #d6d8db 100%);
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 16px 8px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px 8px;
  font-size: 16px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  min-height: 80px;
}

.new-problem-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: -webkit-gradient(linear, left top, right top, from(#007bff), color-stop(#28a745), color-stop(#ffc107), to(#dc3545));
  background: -moz-linear-gradient(left, #007bff, #28a745, #ffc107, #dc3545);
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
}

.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: 8px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  margin: 0;
  font-size: 16px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  min-width: 0;
}

.info-block:nth-child(4) {
  grid-column: 1/2;
  grid-row: 2/3;
}

.info-block:nth-child(5) {
  grid-column: 2/3;
  grid-row: 2/3;
}

.info-block:hover {
  background: rgba(255, 255, 255, 0.9);
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
}

.info-block i {
  color: #495057;
  width: 16px;
  text-align: center;
  font-size: 15px;
  padding: 0;
  border-radius: 2px;
  background: rgba(0, 123, 255, 0.1);
}

.info-block .fa-check {
  background: rgba(40, 167, 69, 0.15);
  color: #155724;
}

.info-block .fa-clock {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
}

.info-block .fa-server {
  background: rgba(40, 167, 69, 0.15);
  color: #155724;
}

.info-block .fa-file {
  background: rgba(0, 123, 255, 0.15);
  color: #004085;
}

.new-pi-value {
  color: #495057;
  font-weight: 600;
  font-size: 15px;
  padding: 0 4px;
  border-radius: 2px;
}

@media screen and (max-width: 1200px) {
  .new-problem-info {
    font-size: 15px;
    padding: 14px 8px;
    gap: 10px 6px;
  }
  .info-block {
    font-size: 15px;
    gap: 5px;
    padding: 6px 4px;
  }
  .info-block i {
    font-size: 14px;
    width: 15px;
  }
  .pi-name {
    font-size: 14px;
  }
  .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;
  }
}
body:not(.problem-raw) .new-problem-info {
  font-size: 15px;
  padding: 15px 8px;
  min-height: 75px;
  gap: 10px 6px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
}
body:not(.problem-raw) .info-block {
  font-size: 15px;
  gap: 5px;
  padding: 7px 5px;
}
body:not(.problem-raw) .info-block i {
  font-size: 14px;
  width: 15px;
}
body:not(.problem-raw) .pi-name {
  font-size: 14px;
}
body:not(.problem-raw) .new-pi-value {
  font-size: 14px;
  padding: 0 3px;
}

.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: #333;
}

.problem-help-text {
  font-size: 0.875rem;
  color: #6c757d;
  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: #ae0000 !important;
}

.error-message {
  color: #ae0000 !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: #f1f2f2;
  border: 1px solid #ccc;
  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 #ccc;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}
.language-templates-page .template-source-code .ace_editor {
  font-size: 13px !important;
}
.language-templates-page .template-source-code .ace_gutter {
  background: #f1f2f2;
  border-right: 1px solid #e9ecef;
}
.language-templates-page .template-card {
  margin-bottom: 15px;
}
.language-templates-page .template-language {
  font-weight: 600;
  color: #495057;
}
.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: #495057;
}
.solutions-page .solution-content {
  max-height: 300px;
  overflow-y: auto;
  background-color: #f1f2f2;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.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: #495057;
}

.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: #ededed !important;
  border-color: #ccc !important;
  color: #00007d;
  opacity: 0.7;
  cursor: not-allowed;
}
.problem-edit-form .select2-container--disabled .select2-selection,
.language-limits-page .select2-container--disabled .select2-selection {
  background-color: #ededed !important;
  border-color: #ccc !important;
  opacity: 0.7;
  cursor: not-allowed;
}

.tab-navigation {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  background: #f5f5f5;
  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: #555;
  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: #333;
}

.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: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.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 #e9ecef;
  padding: 20px;
  border-radius: 6px;
  background: #f8f9fa;
}

.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 #888;
  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 #eee;
  padding-bottom: 10px;
}
.suggestion-modal .suggestion-modal-header h3 {
  margin: 0;
  color: #333;
}
.suggestion-modal .close {
  color: #aaa;
  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: #333;
}
.suggestion-modal .form-group input,
.suggestion-modal .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.suggestion-modal .form-group input:focus,
.suggestion-modal .form-group select:focus {
  outline: none;
  border-color: #007bff;
  -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: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}
.help-section .fa-info-circle {
  color: #007bff;
  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 #ccc;
  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(0, 0, 125, 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: #ccc;
}
.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: #ae0000;
  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 #ccc;
}
.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 #ccc;
  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: #ae0000;
  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: #f1f2f2;
  border: 1px solid #ccc;
  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 #ccc;
  border-radius: 4px;
  color: #00007d;
  background: #f1f2f2;
}
.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 #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.problem-log .log-entry {
  border-bottom: 1px solid #ccc;
}
.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: #f1f2f2;
}
.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: #00007d;
  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(40, 167, 69, 0.15);
  color: #28a745;
}
.problem-log .log-type-test-data {
  background: rgba(0, 123, 255, 0.15);
  color: #007bff;
}
.problem-log .log-type-solution-code {
  background: rgba(255, 193, 7, 0.2);
  color: #8a6d3b;
}
.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: #666;
  font-size: 0.85em;
}
.problem-log .toggle-icon {
  color: #666;
  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 #ccc;
  font-weight: 600;
}
.problem-log .changes-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #ccc;
  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 #ccc;
  background: none;
  cursor: pointer;
  font-size: 0.8em;
  border-radius: 3px;
  margin-right: 2px;
  color: #00007d;
}
.problem-log .diff-tab.active {
  background: #9c3706;
  color: white;
  border-color: #9c3706;
}
.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(40, 167, 69, 0.15);
  color: #28a745;
}
.problem-log .diff-del {
  background: rgba(231, 76, 60, 0.15);
  color: #ae0000;
}
.problem-log .diff-hunk {
  color: #666;
}
.problem-log .diff-ctx {
  color: #00007d;
}
.problem-log .change-old {
  color: #ae0000;
  white-space: pre-line;
  line-height: 1.5;
}
.problem-log .change-new {
  color: #28a745;
  white-space: pre-line;
  line-height: 1.5;
}
.problem-log .no-logs {
  text-align: center;
  padding: 40px;
  color: #666;
  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 #ccc;
  background: #f1f2f2;
  color: #00007d;
  font-weight: 500;
}
.form-actions .review-verdict-pill b {
  font-weight: 700;
}
.form-actions .review-verdict-pill:hover {
  border-color: #00007d;
  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: #00007d;
  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: #f1f2f2;
  border: 1px solid #ccc;
  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 #ccc;
  background: #f1f2f2;
  color: #00007d;
}
.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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Menlo", "Monaco", "Courier New", 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 #ccc;
  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 #ccc;
  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: "Menlo", "Monaco", "Courier New", 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: #ccc;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.92em;
}
.review-dashboard .review-summary-body pre {
  background: #f1f2f2;
  border: 1px solid #ccc;
  padding: 0.75em;
  border-radius: 4px;
  overflow-x: auto;
}
.review-dashboard .review-summary-placeholder {
  color: #00007d;
  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 #ccc;
}
.review-dashboard .review-decision-card .review-decision-note {
  font-size: 0.9em;
  margin-bottom: 0.75em;
  color: #666;
}
.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 #ccc;
  text-align: left;
}
.problem-attachments-page table#attachment-list .drag-handle {
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
  width: 2em;
  color: #00007d;
}
.problem-attachments-page table#attachment-list .delete-btn {
  color: #ae0000;
  background: transparent;
  border: 1px solid #ae0000;
  padding: 0.2em 0.5em;
  cursor: pointer;
}
.problem-attachments-page table#attachment-list .filename-input {
  width: 80%;
  background: #f1f2f2;
  color: #00007d;
  border: 1px solid #9c3706;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}
.problem-attachments-page table#attachment-list .rename-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #00007d;
  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: #ccc;
}
.problem-attachments-page table#attachment-list .description-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2em 0.4em;
  color: #00007d;
  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: #ccc;
}
.problem-attachments-page table#attachment-list .description-input:focus {
  border-color: #9c3706;
  outline: none;
  background: #f1f2f2;
}
.problem-attachments-page table#attachment-list .description-input.is-saved {
  border-color: #9c3706;
  background: #f1f2f2;
}
.problem-attachments-page table#attachment-list .description-input.is-error {
  border-color: #ae0000;
}
.problem-attachments-page #attachment-upload-form {
  background: #f1f2f2;
  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 #ccc;
  border-radius: 3px;
  color: #00007d;
}
.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: #00007d;
  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: black !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: #999;
}
svg.rate-box.rate-newbie path {
  fill: #999;
}
svg.rate-box.rate-amateur circle {
  stroke: #00a900;
}
svg.rate-box.rate-amateur path {
  fill: #00a900;
}
svg.rate-box.rate-specialist circle {
  stroke: #03a89e;
}
svg.rate-box.rate-specialist path {
  fill: #03a89e;
}
svg.rate-box.rate-expert circle {
  stroke: #66f;
}
svg.rate-box.rate-expert path {
  fill: #66f;
}
svg.rate-box.rate-candidate-master circle {
  stroke: #f6f;
}
svg.rate-box.rate-candidate-master path {
  fill: #f6f;
}
svg.rate-box.rate-master circle {
  stroke: #dc0;
}
svg.rate-box.rate-master path {
  fill: #dc0;
}
svg.rate-box.rate-grandmaster circle, svg.rate-box.rate-target circle {
  stroke: #e00;
}
svg.rate-box.rate-grandmaster path, svg.rate-box.rate-target path {
  fill: #e00;
}
svg.rate-box.rate-target circle:last-child {
  stroke: none;
  fill: #e00;
}

.rating {
  font-weight: bold;
  font-family: "Noto Sans";
}

.rate-none, .rate-none a {
  color: black;
  font-weight: normal;
}

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

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

.rate-specialist, .rate-specialist a {
  color: darkcyan;
}

.rate-expert, .rate-expert a {
  color: blue;
}

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

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

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

.rate-group {
  white-space: nowrap;
  display: inline-block;
  color: black;
}
.rate-group .rating {
  display: inline-block;
}
.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: #9c3706;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}
#users-table thead th a, #users-table thead th a:link, #users-table thead th a:visited {
  color: #fff;
  text-decoration: none;
}
#users-table thead th a:hover {
  opacity: 0.9;
}
#users-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #ccc;
  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 tbody tr {
  background: white;
  -webkit-transition: background 0.15s ease;
  -moz-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
#users-table tbody tr:hover {
  background: #f1f2f2;
}
#users-table tbody tr.highlight, #users-table tbody tr:target {
  background: #fffbeb !important;
}
#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: #4b5563;
}
#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: #6b7280 !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: #2980b9;
}
#users-table .pretest-partial-score, #users-table .pretest-partial-score a {
  color: #2980b9;
}
#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: #6b7280;
  font-weight: normal;
  font-size: 0.7rem;
}
#users-table .point-denominator {
  border-top: 1px solid #ccc;
  font-size: 0.7em;
}
#users-table .fullname-column {
  text-align: right !important;
  border-right: none !important;
}
#users-table .fullname-column span {
  color: #6b7280 !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: #2980b9;
  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 #CCC;
}

.contest-history-cell {
  border-left: 1px solid #CCC;
  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: #ddd;
  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 #ccc;
}

#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: green;
  border-color: lightgreen;
}

.follow:hover {
  background: darkgreen;
}

.unfollow {
  background: red;
  border-color: pink;
}

.unfollow:hover {
  background: darkred;
}

#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: #444;
}
#submission-activity #submission-activity-display {
  border: 1px solid #ccc;
  border-radius: 6px;
}
#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: #444;
}
#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: white;
}
#submission-activity #submission-activity-display table td.activity-0 {
  background-color: #ddd;
}
#submission-activity #submission-activity-display table td.activity-1 {
  background-color: #9be9a8;
}
#submission-activity #submission-activity-display table td.activity-2 {
  background-color: #40c463;
}
#submission-activity #submission-activity-display table td.activity-3 {
  background-color: #2f9c4c;
}
#submission-activity #submission-activity-display table td.activity-4 {
  background-color: #216e39;
}

.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: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.user-stat-card:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  -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: rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.user-stat-card .stat-icon.green {
  background: rgba(34, 197, 94, 0.1);
}
.user-stat-card .stat-icon.darkcyan {
  background: rgba(0, 139, 139, 0.1);
}
.user-stat-card .stat-icon.peru {
  background: rgba(205, 133, 63, 0.1);
}
.user-stat-card .stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}
.user-stat-card .stat-content {
  min-width: 0;
}
.user-stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.user-stat-card .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.user-about-section .admin-notes {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  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: #f1f2f2;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.user-about-section .no-about-text {
  color: #9ca3af;
  font-style: italic;
  padding: 1rem;
  text-align: center;
  background: #f1f2f2;
  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: #374151;
  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: #9c3706;
  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: #22c55e;
  color: white;
}
.user-sidebar .sidebar-btn.follow:hover {
  background: #16a34a;
}
.user-sidebar .sidebar-btn.unfollow {
  background: #ef4444;
  color: white;
}
.user-sidebar .sidebar-btn.unfollow:hover {
  background: #dc2626;
}
.user-sidebar .sidebar-btn.message {
  background: #3b82f6;
  color: white;
}
.user-sidebar .sidebar-btn.message:hover {
  background: #2563eb;
}
.user-sidebar .sidebar-contest-stats {
  background: #f1f2f2;
  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 #ccc;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row .stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}
.user-sidebar .sidebar-contest-stats .contest-stat-row .stat-value {
  font-weight: 600;
  font-size: 0.85rem;
}

.dark-mode .user-stat-card, [data-theme=dark] .user-stat-card {
  background: #1f2937;
  border-color: #374151;
}
.dark-mode .user-stat-card:hover, [data-theme=dark] .user-stat-card:hover {
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.dark-mode .user-stat-card .stat-label, [data-theme=dark] .user-stat-card .stat-label {
  color: #9ca3af;
}
.dark-mode .user-fullname, [data-theme=dark] .user-fullname {
  color: #e5e7eb;
}
.dark-mode .user-about-section .about-content,
.dark-mode .user-about-section .no-about-text, [data-theme=dark] .user-about-section .about-content,
[data-theme=dark] .user-about-section .no-about-text {
  background: #1f2937;
}
.dark-mode .user-about-section .no-about-text, [data-theme=dark] .user-about-section .no-about-text {
  color: #6b7280;
}
.dark-mode .user-section .section-title, [data-theme=dark] .user-section .section-title {
  color: #e5e7eb;
}
.dark-mode .sidebar-contest-stats, [data-theme=dark] .sidebar-contest-stats {
  background: #1f2937;
}
.dark-mode .sidebar-contest-stats .contest-stat-row, [data-theme=dark] .sidebar-contest-stats .contest-stat-row {
  border-bottom-color: #374151;
}
.dark-mode .sidebar-contest-stats .contest-stat-row .stat-label, [data-theme=dark] .sidebar-contest-stats .contest-stat-row .stat-label {
  color: #9ca3af;
}
.dark-mode .sidebar-contest-stats .contest-stat-row .stat-value, [data-theme=dark] .sidebar-contest-stats .contest-stat-row .stat-value {
  color: #e5e7eb;
}

.profile-card {
  border: 1px solid #ddd;
  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: "Segoe UI", "Noto Sans", Arial, "Lucida Grande", 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: "Noto Sans", "Segoe UI", Arial, "Lucida Grande", 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, #444) !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, #444);
}
.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: #ccc;
    border-radius: 2px;
  }
  #content-right .info-float::-webkit-scrollbar-thumb:hover {
    background: #aaa;
  }
}
@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: #9c3706;
  color: white;
  border-bottom: none;
  font-weight: 600;
}
.sortable-formset .sortable-table tbody tr {
  border-bottom: 1px solid #ccc;
  background-color: white;
}
.sortable-formset .sortable-table tbody tr:hover {
  background-color: rgba(156, 55, 6, 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: #999;
  padding: 0.25em 0.5em;
  display: inline-block;
}
.sortable-formset .drag-handle:hover {
  color: #00007d;
}
.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: #666;
  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(156, 55, 6, 0.1);
  border: 2px dashed #9c3706;
}
.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: #9c3706;
}
.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: #9c3706;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  -webkit-box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
          box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  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: 3rem;
  padding: -moz-calc(0.875rem - 1px) -moz-calc(1.5rem - 1px);
  padding: calc(0.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  -webkit-transition: all 250ms;
  -moz-transition: all 250ms;
  transition: all 250ms;
  -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, #9e9e9e), to(#7f7f7f)) repeat-x !important;
  background: -moz-linear-gradient(top, #9e9e9e 0, #7f7f7f 100%) repeat-x !important;
  background: linear-gradient(to bottom, #9e9e9e 0, #7f7f7f 100%) repeat-x !important;
  border-color: #7f7f7f !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: #666;
}
.button.btn-hovergray:hover {
  background: #ededed;
}
.button.btn-green {
  background: #28a745;
}
.button.btn-green:hover {
  background: #218838;
}
.button.btn-darkred {
  background: #8b0000;
}
.button.btn-darkred:hover {
  background: #a52a2a;
}
.button.btn-midnightblue {
  background: #191970;
}
.button.btn-midnightblue:hover {
  background: #00008b;
}
.button.btn-darkGreen {
  background: #9c3706;
}
.button.unselectable.button.full.small {
  margin: 0 auto;
}

.button:hover {
  background-color: #9c3706;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
          box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  -webkit-transform: translateY(-1px);
     -moz-transform: translateY(-1px);
          transform: translateY(-1px);
}

.button:focus {
  background-color: #9c3706;
  -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
          box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button:active {
  background-color: #9c3706;
  -webkit-box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
          box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  -webkit-transform: translateY(0);
     -moz-transform: translateY(0);
          transform: translateY(0);
}

.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: 4px 8px;
  color: #555;
  background: #fff none;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
          box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  -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: 14px;
}
input[type=number] {
  padding: 2px 0 2px 5px;
}

textarea {
  padding: 8px;
  background: #fff none;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
          box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
  -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: #333;
}

input[type=text]:hover, input[type=password]:hover {
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(82, 168, 236, 0.6);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(82, 168, 236, 0.6);
}

textarea:focus {
  border-color: #333;
  border-width: unset;
  outline: 0;
}

input[type=text]:focus, input[type=password]:focus {
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  outline: 0;
}

.btn-clipboard {
  top: -5px;
  right: -8px;
  display: block;
  font-size: 12px;
  cursor: pointer;
  position: absolute;
  padding: 5px 8px;
  font-family: system-ui, "Noto Sans";
}
.btn-clipboard:hover {
  border-radius: 0.5em;
  border: 1px solid #e1e1e8;
  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: #9c3706;
  cursor: default;
  font-weight: bold;
  border-bottom: 3px solid #9c3706;
  background: transparent;
}

.tabs {
  margin: 0 0 8px;
  width: 100%;
  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: #666;
}
.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: #333;
}
.tabs h2 {
  color: #333;
}
.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: 10px;
  line-height: 1.42857;
  position: relative;
  display: block;
  padding: 5px;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  font-weight: bold;
}
.tabs > ul > li > a:hover, .tabs > ul > li > span:hover {
  border-bottom: 3px solid #008000;
}

ul.pagination a:hover {
  color: #fff;
  background: #cc4e17;
}

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: 0.5em;
}
ul.pagination > li {
  display: inline;
}
ul.pagination > li > a, ul.pagination > li > span {
  position: relative;
  float: left;
  padding: 4px 12px;
  margin-right: 5px;
  font-weight: bold;
  line-height: 1.42857;
  text-decoration: none;
  color: #9c3706;
  background-color: #fff;
  border: 2px solid #9c3706;
  border-radius: 10px;
}
ul.pagination > .disabled-page > a {
  color: #f1efef;
  background-color: #ab6247;
  border-color: #6a240b;
}
ul.pagination > .disabled-page > span {
  color: #f1efef;
  background-color: #ab6247;
  border-color: #6a240b;
}
ul.pagination > .active-page > a {
  z-index: 2;
  color: #fff;
  background-color: #9c3706;
  border-color: transparent;
  cursor: default;
}
ul.pagination > .active-page > span {
  z-index: 2;
  color: #fff;
  background-color: white;
  border-color: transparent;
  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: 0.5em;
}

.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.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: #333;
  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: #333 !important;
}

.close:focus, .close:hover {
  color: #333;
  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: #e84848;
  border-radius: 10px;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.form-submit-group {
  border-top: 1px solid #eee;
  margin-top: 0.8em;
  padding-top: 0.5em;
  text-align: right;
}

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

.sidebox h3 {
  border-radius: 0.5em 0.5em 0 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 7px;
  font-size: 1.3em;
  font-weight: bold;
  background: #fff;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.sidebox h3 .fa {
  background: #9c3706;
  color: #fff;
  padding: 4px;
  margin-right: 8px;
  border-radius: 5px;
  font-size: smaller;
}

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

.sidebox {
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  margin-bottom: 1.5em;
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.ws-closed {
  position: -webkit-sticky;
  position: sticky;
  top: 42px;
  background: #ae0000;
  border-radius: 5px 5px 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: 5px;
}
.messages li.debug {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d6d8db;
}
.messages li.info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
.messages li.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.messages li.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}
.messages li.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.spoiler-text {
  border: 1px solid #333;
  padding: 0.5em;
  margin-top: 0.5em;
  border-radius: 5px;
  background: #def;
}

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

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

ul.errorlist {
  margin: 0;
  text-align: right;
  list-style: none;
  padding: 0;
  color: #ff0000;
  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: #555;
  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: #ff0000;
}
.registration-form .form-field-error {
  color: #ff0000;
}
.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;
}

#login-panel {
  display: inline-block;
  position: relative;
  margin: 5em auto auto -10em;
  top: 40%;
  left: 50%;
}
#login-panel h4 {
  padding-top: 1em;
}
#login-panel .social {
  display: inline;
  font-size: 2.3em;
  float: none;
}
#login-panel .google-icon i {
  color: #dd4b38;
}
#login-panel .facebook-icon i {
  color: #133783;
}
#login-panel .github-icon i {
  color: #333;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
  }
}
.btn:hover {
  color: #212529;
  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: #9c3706;
  background-color: #f8f8f2;
}

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: 5px;
  font-size: 14px;
  font-weight: 500;
  -webkit-box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.btn span {
  font-size: 15px;
  margin-left: -20px;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.btn .icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  bottom: 0;
  background: #fff;
}
.btn .icon i {
  font-size: 20px;
}
.btn .icon.icon-round {
  border-radius: 50%;
}
.btn.btn-round {
  border-radius: 40px;
}
.btn:hover, .btn:active, .btn:focus {
  outline: none;
}
.btn:hover span, .btn:active span, .btn:focus span {
  margin-left: -10px;
}
.btn.btn-primary {
  color: #fff;
}
.btn.btn-primary .icon i {
  color: #28a745;
}
.btn.btn-disabled {
  color: #fff;
  background: #666;
  border-color: #666;
}

.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: 8px;
  -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 8px;
  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 #ccc;
  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);
}
.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: 8px;
  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: 8px;
  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 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.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 #ccc;
  border-radius: 6px;
  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: #9c3706;
  background: #fef9f7;
}
.image-file-widget .change-image i {
  color: #9c3706;
  font-size: 1.1em;
}
.image-file-widget .change-image span {
  font-weight: 500;
  color: #666;
}
.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 #ccc;
  border-radius: 6px;
  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: #fff5f5;
  border-color: #e74c3c;
}
.image-file-widget .clear-image:hover i {
  color: #e74c3c;
}
.image-file-widget .clear-image input[type=checkbox] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.image-file-widget .clear-image i {
  color: #999;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.image-file-widget .clear-image span {
  font-weight: 500;
  color: #666;
}
.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 #ccc;
  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;
}
.image-file-widget .upload-area:hover {
  border-color: #9c3706;
  background: #fef9f7;
}
.image-file-widget .upload-area:hover i {
  color: #9c3706;
}
.image-file-widget .upload-area i {
  font-size: 2.5em;
  color: #999;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.image-file-widget .upload-area span {
  font-weight: 500;
  color: #666;
}

.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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.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 #ccc;
  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);
}
.pdf-file-widget .current-file .pdf-icon {
  color: #e74c3c;
  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 #ccc;
  border-radius: 6px;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  transition: background 0.2s;
}
.pdf-file-widget .clear-file:hover {
  background: #fff5f5;
  border-color: #e74c3c;
}
.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: #666;
  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 #ccc;
  border-radius: 6px;
}
.pdf-file-widget .change-file span {
  font-weight: 500;
  color: #666;
}
.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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 8px;
  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 #ccc;
  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);
}
.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: 8px;
  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: 8px;
  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 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.direct-upload-widget .current-preview:has(img) a:hover .image-overlay {
  opacity: 1;
}
.direct-upload-widget .current-preview .pdf-icon {
  color: #e74c3c;
  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 #ccc;
  border-radius: 6px;
  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: #9c3706;
  background: #fef9f7;
}
.direct-upload-widget .change-btn i {
  color: #9c3706;
  font-size: 1.1em;
}
.direct-upload-widget .change-btn span {
  font-weight: 500;
  color: #333;
}
.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 #ccc;
  border-radius: 6px;
  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: #fff5f5;
  border-color: #e74c3c;
}
.direct-upload-widget .delete-btn:hover i, .direct-upload-widget .delete-btn:hover span {
  color: #e74c3c;
}
.direct-upload-widget .delete-btn i {
  color: #999;
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  transition: color 0.2s;
}
.direct-upload-widget .delete-btn span {
  font-weight: 500;
  color: #666;
  -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 #ccc;
  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;
  text-align: center;
}
.direct-upload-widget .upload-area:hover {
  border-color: #9c3706;
  background: #fef9f7;
}
.direct-upload-widget .upload-area i {
  font-size: 2em;
  color: #9c3706;
}
.direct-upload-widget .upload-area span {
  font-weight: 500;
  color: #666;
}
.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 #ccc;
  border-radius: 6px;
  margin-top: 12px;
}
.direct-upload-widget .upload-progress .progress-bar-container {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.direct-upload-widget .upload-progress .progress-bar-fill {
  height: 100%;
  background: #9c3706;
  border-radius: 4px;
  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: #666;
  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: #fff5f5;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  color: #e74c3c;
  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 #e74c3c;
  border-radius: 4px;
  background: #fff;
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.85em;
}
.direct-upload-widget .upload-error .retry-btn:hover {
  background: #e74c3c;
  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: 6px;
  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: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.direct-upload-widget .upload-status.upload-status-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
@-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: #ae0000;
}

.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: #9c3706;
  text-decoration: none;
  padding: 0 4px;
}
.comment-area .header .comment-edits a:hover {
  text-decoration: underline;
}
.comment-area .body-header {
  background: #eeeeee;
  border-radius: 18px;
  border: none;
  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: #6b7280;
  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: #374151;
}
.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: #6b7280;
  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: #374151;
}
.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: #9c3706;
  background: rgba(156, 55, 6, 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: #9c3706;
}
.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: #9c3706;
  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(156, 55, 6, 0.08);
}
.comment-area .thread-line {
  position: absolute;
  left: 19px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: #ccc;
  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: #9c3706;
}
.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: #9c3706;
  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(156, 55, 6, 0.08);
}
.comment-area .highlight_comment {
  background: rgba(156, 55, 6, 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: #9c3706;
  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;
  }
}
.dark-mode .comment-area .header,
[data-theme=dark] .comment-area .header {
  color: #e4e6eb;
}
.dark-mode .comment-area .header .author,
[data-theme=dark] .comment-area .header .author {
  color: #e4e6eb;
}
.dark-mode .comment-area .header .time,
.dark-mode .comment-area .header .comment-edits,
[data-theme=dark] .comment-area .header .time,
[data-theme=dark] .comment-area .header .comment-edits {
  color: #e4e6eb;
}
.dark-mode .comment-area .body-header,
[data-theme=dark] .comment-area .body-header {
  background: rgba(255, 255, 255, 0.05);
}
.dark-mode .comment-area .body .comment-body,
[data-theme=dark] .comment-area .body .comment-body {
  color: #e4e6eb;
}
.dark-mode .comment-area .body .comment-body code,
[data-theme=dark] .comment-area .body .comment-body code {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-area .body .comment-body pre,
[data-theme=dark] .comment-area .body .comment-body pre {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-area .action-bar .upvote-link,
.dark-mode .comment-area .action-bar .downvote-link,
[data-theme=dark] .comment-area .action-bar .upvote-link,
[data-theme=dark] .comment-area .action-bar .downvote-link {
  color: #e4e6eb;
}
.dark-mode .comment-area .action-bar .upvote-link:hover,
.dark-mode .comment-area .action-bar .downvote-link:hover,
[data-theme=dark] .comment-area .action-bar .upvote-link:hover,
[data-theme=dark] .comment-area .action-bar .downvote-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-area .comment-score,
[data-theme=dark] .comment-area .comment-score {
  color: #e4e6eb;
}
.dark-mode .comment-area .action-bar .action-link,
[data-theme=dark] .comment-area .action-bar .action-link {
  color: #e4e6eb;
}
.dark-mode .comment-area .action-bar .action-link:hover,
[data-theme=dark] .comment-area .action-bar .action-link:hover {
  background: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-area .ul-comments::before,
[data-theme=dark] .comment-area .ul-comments::before {
  background: rgba(255, 255, 255, 0.15);
}
.dark-mode .comment-area .ul-comments:hover::before,
[data-theme=dark] .comment-area .ul-comments:hover::before {
  background: #9c3706;
}
.dark-mode .comment-area .highlight_comment,
[data-theme=dark] .comment-area .highlight_comment {
  background: rgba(156, 55, 6, 0.1);
}
.dark-mode .comment-area .bad-comment-body,
[data-theme=dark] .comment-area .bad-comment-body {
  color: #e4e6eb;
}

.dark-mode .comment-header-wrapper,
[data-theme=dark] .comment-header-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .comment-sort-controls .sort-label,
[data-theme=dark] .comment-sort-controls .sort-label {
  color: #e4e6eb;
}

.comment-item {
  padding: 14px 16px;
  border-bottom: 1px solid #ccc;
  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;
}

.dark-mode .comment-item,
[data-theme=dark] .comment-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-item:hover,
[data-theme=dark] .comment-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.dark-mode .comment-item .comment-icon,
[data-theme=dark] .comment-item .comment-icon {
  background-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .comment-item .comment-content a,
[data-theme=dark] .comment-item .comment-content a {
  color: #e4e6eb;
}
.dark-mode .comment-item .comment-meta .comment-user .user-name,
[data-theme=dark] .comment-item .comment-meta .comment-user .user-name {
  color: #e4e6eb;
}
.dark-mode .comment-item .comment-meta .comment-time,
[data-theme=dark] .comment-item .comment-meta .comment-time {
  color: #e4e6eb;
}

.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 #ccc;
}

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

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

.inline-comments-empty {
  text-align: center;
  padding: 16px;
  color: #6b7280;
  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: #6b7280;
  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: #6b7280;
}
.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 #ccc;
  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: #9c3706;
  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(156, 55, 6, 0.08);
}
.inline-comments-footer .view-all-comments-link i {
  font-size: 0.85rem;
}

.actionbar-comment.active {
  color: #9c3706;
}

.dark-mode .inline-comments-container,
[data-theme=dark] .inline-comments-container {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .inline-comments-empty,
[data-theme=dark] .inline-comments-empty,
.dark-mode .inline-comments-loading,
[data-theme=dark] .inline-comments-loading {
  color: #9ca3af;
}

.dark-mode .inline-comment-item .inline-comment-header .time,
[data-theme=dark] .inline-comment-item .inline-comment-header .time {
  color: #9ca3af;
}
.dark-mode .inline-comment-item .inline-comment-body,
[data-theme=dark] .inline-comment-item .inline-comment-body {
  color: #e4e6eb;
}
.dark-mode .inline-comment-item .inline-comment-footer,
[data-theme=dark] .inline-comment-item .inline-comment-footer {
  color: #9ca3af;
}

.dark-mode .inline-comments-footer,
[data-theme=dark] .inline-comments-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.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: #6b7280;
  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 #ccc;
  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: #9c3706;
  -webkit-box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.1);
          box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.1);
  border-radius: 12px;
}
.inline-comment-input::-webkit-input-placeholder {
  color: #9ca3af;
}
.inline-comment-input:-ms-input-placeholder {
  color: #9ca3af;
}
.inline-comment-input::placeholder {
  color: #9ca3af;
}

.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: #9c3706;
  color: white;
  border: none;
}
.inline-submit-btn:hover {
  background-color: rgb(116.7111111111, 41.1481481481, 4.4888888889);
}
.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 #ccc;
  border-radius: 16px;
  cursor: pointer;
  color: #6b7280;
}
.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 #ccc;
  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: #9c3706;
}
.inline-sort-select:hover {
  border-color: #9ca3af;
}

.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: #9c3706;
  background: transparent;
  border: 1px solid #ccc;
  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(156, 55, 6, 0.08);
  border-color: #9c3706;
}
.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 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;
}
.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: 15px;
}
.submission-row .sub-result .language {
  background-color: #e1e1e1;
  border-radius: 5px;
  padding: 2px 8px;
}
.submission-row .sub-result .score {
  font-size: 1.2em;
}
.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: #555;
  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;
}
.submission-row .sub-usage .time {
  font-weight: bold;
}
.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 .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: #555;
}

.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: 1em;
  border: 1px solid #2980b9;
  border-left-width: 0.5em;
  border-radius: 4px;
  color: #222;
}
#test-cases .case-output {
  margin: 0;
  margin-top: 1em;
  -webkit-box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
          box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
  margin: 1rem 0;
  padding: 1em 1em;
  border-radius: 0.28571429rem;
  border: 1px solid rgba(34, 36, 38, 0.15);
  font-family: Consolas;
  overflow-wrap: anywhere;
}
#test-cases .testcases-table {
  width: 100%;
  border: groove;
  border-radius: 0.5em;
  border-spacing: 0;
}
#test-cases .testcases-table thead td:first-child {
  border-top-left-radius: 0.5em;
}
#test-cases .testcases-table thead td:last-child {
  border-top-right-radius: 0.5em;
}
#test-cases .testcases-table td {
  padding: 0.6em 0.8em;
  width: 18.75%;
}
#test-cases .testcases-table .case-row td:nth-child(2) {
  width: 25%;
}
#test-cases .testcases-table .case-row:hover {
  cursor: pointer;
}
#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: -moz-linear-gradient(45deg, #a8ff78, #78ffd6);
  background: linear-gradient(45deg, #a8ff78, #78ffd6);
}

.overall-result-WA {
  background: -moz-linear-gradient(45deg, yellow, red);
  background: linear-gradient(45deg, yellow, red);
}

.overall-result-TLE {
  background: -moz-linear-gradient(45deg, #D7DDE8, #757F99);
  background: linear-gradient(45deg, #D7DDE8, #757F99);
}

.overall-result-RTE,
.overall-result-MLE {
  background: -moz-linear-gradient(45deg, #fceabb, #f8b500);
  background: linear-gradient(45deg, #fceabb, #f8b500);
}

.col-title {
  font-weight: bold;
}

.case-AC {
  color: green;
  font-weight: bold;
}

.case-_AC {
  color: red;
  font-weight: bold;
}

.case-WA {
  color: red;
  font-weight: bold;
}

.case-TLE, .case-SC {
  color: gray;
  font-weight: bold;
}

.case-MLE, .case-OLE, .case-RTE, .case-IR {
  color: orange;
  font-weight: bold;
}

.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 {
  -webkit-box-shadow: 0px 1px 2px lightgrey, 0px 1px 5px lightgrey;
          box-shadow: 0px 1px 2px lightgrey, 0px 1px 5px lightgrey;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  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;
  background: white;
}
.list-contest .info-contest:first-child, .list-contest .info-contest:nth-child(2) {
  margin-right: 15px;
}
.list-contest .info-contest {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1;
}
.list-contest .contest-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 5px;
}

#contest-calendar {
  border-collapse: collapse;
  width: 100%;
}
#contest-calendar th {
  border-bottom: 1px solid #ccc;
}
#contest-calendar th.sun {
  border-left: 1px solid #ccc;
}
#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 #ccc;
  background: #f1f2f2;
}
#contest-calendar td {
  height: 110px;
  width: 170px;
  color: #000;
  vertical-align: top;
  text-align: right;
  font-size: 0.75em;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  -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 #ccc;
  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 #aaa;
}

#banner.contest-banner {
  text-align: center;
  padding: 1em 1.5em;
  margin-bottom: 1em;
  background: #f1f2f2;
  border-radius: 8px;
  border-left: 4px solid #9c3706;
}
#banner.contest-banner .contest-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 0.5em 0;
  color: #111;
}
#banner.contest-banner .contest-title a {
  color: inherit;
  text-decoration: none;
}
#banner.contest-banner .contest-title a:hover {
  color: #9c3706;
}
#banner.contest-banner .contest-status {
  margin-bottom: 0.4em;
}
#banner.contest-banner .contest-status .status-text {
  font-size: 1.15em;
  font-weight: 600;
  color: #111;
}
#banner.contest-banner .contest-status .status-ended::before {
  content: "✓ ";
  color: #6b7280;
}
#banner.contest-banner .contest-status .status-active {
  color: #9c3706;
}
#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: #4b5563;
}
#banner.contest-banner .contest-freeze-info {
  font-size: 0.85em;
  color: #ae0000;
  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: 14px;
}

.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: white;
}
.contest-ranking-page #users-table a {
  display: block;
}
.contest-ranking-page #users-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
}
.contest-ranking-page #users-table td a:hover {
  text-decoration: none;
}
.contest-ranking-page #users-table thead th {
  background: #9c3706;
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  font-size: 0.85rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.contest-ranking-page #users-table thead th a {
  color: white;
  text-decoration: none;
}
.contest-ranking-page #users-table thead th a:hover {
  opacity: 0.9;
}
.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: white;
  font-weight: 600;
}
.contest-ranking-page #users-table thead th.problem-score-col .point-denominator {
  font-size: 0.7em;
  opacity: 0.8;
  font-weight: 400;
  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: white;
  -webkit-transition: background 0.15s ease;
  -moz-transition: background 0.15s ease;
  transition: background 0.15s ease;
}
.contest-ranking-page #users-table tbody tr:hover {
  background: #f1f2f2;
}
.contest-ranking-page #users-table tbody tr:last-child td {
  border-bottom: none;
}
.contest-ranking-page #users-table tbody tr.highlight {
  background: #fffbeb !important;
}
.contest-ranking-page #users-table tbody tr.highlight td:first-child {
  -webkit-box-shadow: inset 3px 0 0 #9c3706;
          box-shadow: inset 3px 0 0 #9c3706;
}
.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: #9ca3af;
}
.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-weight: 600;
  text-align: center;
  font-size: 0.85rem;
}
.contest-ranking-page .points {
  min-width: 4.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.contest-ranking-page .start-time {
  font-size: 0.7rem;
  color: #9ca3af;
}
.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 #ccc;
}
.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: #9c3706;
}
.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: #666;
  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: #9c3706;
}
.contest-ranking-page .contest-participation-operation a i.fa {
  font-size: 0.8em;
}
.contest-ranking-page .contest-participation-operation .disqualify-participation:hover {
  color: #ae0000;
}
.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: #6b7280;
  line-height: 1.2;
}
.contest-ranking-page .fullname,
.contest-ranking-page .user-table-fullname {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.3;
  margin-top: 2px;
  font-weight: 400;
}
.contest-ranking-page .school {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  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: 0.85rem;
  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.2rem;
  white-space: nowrap;
}
.contest-ranking-page .ranking-filters-container .filter-option input[type=checkbox] {
  accent-color: #9c3706;
  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 #ccc;
}
.contest-ranking-page .ranking-search-input {
  width: 200px;
  height: 2em;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0 0.5em;
  font-size: 0.8rem;
}
.contest-ranking-page .ranking-search-input:focus {
  border-color: #9c3706;
  outline: none;
}
.contest-ranking-page #search-contest {
  width: 180px;
  height: 2em;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0 0.5em;
  font-size: 0.8rem;
}
.contest-ranking-page #search-contest:focus {
  border-color: #9c3706;
  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: #6b7280;
  font-size: 0.95rem;
}

.contest-tag {
  padding: 0.15em 0.3em;
  border-radius: 0.15em;
  font-weight: 600;
  margin-right: 0.45em;
  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: 0.2em;
}

.contest-tag-edit {
  background-color: green;
}

.contest-tag-private {
  background-color: #666666;
  color: #ffffff;
}

.contest-tag-org {
  background-color: #cccccc;
}
.contest-tag-org a {
  color: #000000;
}

.contest-tag-rated {
  background-color: #e54c14;
  color: #ffffff;
}

.contest-list-title {
  font-size: 1.1em;
  font-weight: 600;
}

.contest-list-sort {
  color: #7dc7ff;
}

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: #444;
}
.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: #9c3706;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}
.contest-clarifications-add:hover {
  color: #00007d;
  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 #ccc;
  border-left: 4px solid #9c3706;
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  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: #00007d;
  font-weight: 600;
  text-decoration: none;
}

a.contest-clarification-problem:hover {
  color: #9c3706;
  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 #ccc;
  border-radius: 4px;
  background: #f1f2f2;
  color: #9c3706;
  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: #333;
  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: #9c3706;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.contest-clarification-more:hover {
  color: #00007d;
  text-decoration: underline;
}

.contest-clarification-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #f1f2f2;
  color: #666;
  font-style: italic;
  text-align: center;
}

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

@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 #ccc;
  background: #f1f2f2;
}
#bulk-disqualify-modal .modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00007d;
}
#bulk-disqualify-modal .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
}
#bulk-disqualify-modal .modal-header .modal-close:hover {
  color: #ae0000;
}
#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: #00007d;
}
#bulk-disqualify-modal .modal-body textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  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: #9c3706;
}
#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 #ccc;
  background: #f1f2f2;
}
#bulk-disqualify-modal .modal-footer .btn-default {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}
#bulk-disqualify-modal .modal-footer .btn-default:hover {
  background: #ededed;
}

.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 #ccc;
  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 #ccc;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f2f2;
  white-space: nowrap;
}
.contest-edit-page .sortable-table .contest-row-type-btn {
  border: 0;
  background: transparent;
  color: #555;
  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 #ccc;
}
.contest-edit-page .sortable-table .contest-row-type-btn.active {
  background: #9c3706;
  color: #fff;
}
.contest-edit-page .sortable-table .contest-row-type-btn:not(.active):hover {
  background: rgba(156, 55, 6, 0.08);
  color: #212529;
}
.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), monospace;
}
#judge-versions .version-blank {
  background: #eee;
}
#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 #e4e6eb;
  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 #e4e6eb;
}
.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: #65676b;
  font-weight: 600;
}
.chat-page .status-section-title hr {
  margin: 8px 0 0;
  border-color: #e4e6eb;
}
.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: #65676b;
  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: #0084ff;
  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: #e4e6eb;
}
.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 #e4e6eb;
  -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: #65676b;
  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: #0084ff;
  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: #65676b;
}
.chat-page .chat-empty-message {
  text-align: center;
  color: #65676b;
  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: #65676b;
}
.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: #f0f0f0;
  color: #050505;
}
.chat-page .message-bubble-self,
.chat-page .message-text-myself {
  background-color: #0084ff;
  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: #666;
  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: #f1f2f2;
  color: #00007d;
  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 #ccc;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.chat-page .message-actions-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #333;
  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: #f1f2f2;
  outline: none;
}
.chat-page .message-actions-menu .chat_mute {
  color: #ae0000;
}
.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: #65676b;
}
.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 #ccc;
  border-radius: 8px;
  -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  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 #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  padding: 8px;
  font: inherit;
}
.chat-page .chat-modal-summary {
  color: #666;
  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 #ccc;
  border-radius: 6px;
  background: #f1f2f2;
  font-weight: 500;
  cursor: pointer;
}
.chat-page .chat-mute-type-options input {
  margin: 0;
}
.chat-page .chat-modal-error {
  color: #ae0000;
  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 #ccc;
}
.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: #666;
  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 #ccc;
  border-radius: 22px;
  background: #f1f2f2;
  -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: #0084ff;
  -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: #65676b;
}
.chat-page .chat-input:-ms-input-placeholder, .chat-page #chat-input:-ms-input-placeholder {
  color: #65676b;
}
.chat-page .chat-input::placeholder,
.chat-page #chat-input::placeholder {
  color: #65676b;
}
.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: #65676b;
  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: #0084ff;
}
.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: #0084ff;
  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: #f1f2f2;
  border-color: #ccc;
  -webkit-box-shadow: none;
          box-shadow: none;
  cursor: not-allowed;
}
.chat-page #chat-input-container.is-muted #chat-input {
  color: #666;
  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: #ccc;
}
.chat-page #chat-input-container.is-muted #emoji-button:hover {
  color: #666;
}
.chat-page #chat-input-container.is-muted .chat-submit-btn:hover {
  background: #ccc;
}
.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: #9c3706;
  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: #65676b;
}
.chat-page .user-redirect:hover {
  color: #0084ff;
}
@media (min-width: 800px) {
  .chat-page .chat-container {
    height: -moz-calc(100vh - 50px);
    height: calc(100vh - 50px);
    border: 1px solid #e4e6eb;
    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 - 50px);
    height: calc(100vh - 50px);
    border: 1px solid #e4e6eb;
    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 - 36px);
    height: calc(100vh - 36px);
    height: -moz-calc(100dvh - 36px);
    height: calc(100dvh - 36px);
  }
  .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: #65676b;
    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 #e4e6eb;
  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: #65676b;
  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 #ddd;
  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: #9c3706;
}
.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: #f0f0f0;
}
.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 #ccc 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: #4b5563;
}
.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: #374151;
}
.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: #9c3706;
}
.org-about code {
  font-size: 0.9em;
  background: #f1f2f2;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
.org-about pre {
  font-size: 0.85em;
  margin: 0.5em 0;
  padding: 0.5em;
  background: #f1f2f2;
  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 #ddd;
}

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

.organization-tag-edit {
  margin-left: 0.3em;
  color: #9c3706;
}
.organization-tag-edit:hover {
  color: rgb(82.3333333333, 29.0277777778, 3.1666666667);
}

.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: -moz-linear-gradient(315deg, #4b5563, #374151);
  background: linear-gradient(135deg, #4b5563, #374151);
  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: -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 {
  background: -moz-linear-gradient(315deg, rgb(231.7722222222, 148.9222962963, 108.7277777778), rgb(232.8361111111, 182.8934814815, 158.6638888889));
  background: linear-gradient(135deg, rgb(231.7722222222, 148.9222962963, 108.7277777778), rgb(232.8361111111, 182.8934814815, 158.6638888889));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  overflow: hidden;
}
.org-header:has(.org-cover-image) {
  background: #f1f2f2;
  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: -moz-linear-gradient(315deg, #9c3706, rgb(106.8888888889, 37.6851851852, 4.1111111111));
  background: linear-gradient(135deg, #9c3706, rgb(106.8888888889, 37.6851851852, 4.1111111111));
  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: #00007d;
  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-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: #374151;
}
.org-stat i {
  font-size: 0.75rem;
  color: #6b7280;
}

.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: #ededed;
  border: 2px solid white;
  font-size: 0.65rem;
  font-weight: 600;
  color: #00007d;
  margin-left: 8px;
}
.org-member-more:hover {
  background: rgb(224.25, 224.25, 224.25);
}

.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: #9c3706;
  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(106.8888888889, 37.6851851852, 4.1111111111);
  -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(205.1111111111, 72.3148148148, 7.8888888889);
}

.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: #ccc;
}
.org-invite-join .org-cancel-btn:hover {
  background: rgb(178.5, 178.5, 178.5);
  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 #ccc;
  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: #f1f2f2;
  -webkit-transition: background 0.2s;
  -moz-transition: background 0.2s;
  transition: background 0.2s;
}
.post-composer .composer-trigger:hover {
  background: rgb(227.7777777778, 229.7222222222, 229.7222222222);
}
.post-composer .composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.post-composer .composer-placeholder {
  color: #6b7280;
  -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: #9c3706;
  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;
}

.ticket-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.ticket-container #content > h2:first-child small {
  color: #999;
  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 #999 solid;
  border-radius: 5px;
}
.ticket-container .info-title {
  padding: 2px 5px;
  font-weight: 600;
  border-bottom: 1px #999 solid;
  background: #eee;
  border-radius: 5px 5px 0 0;
}
.ticket-container .info-data {
  padding: 2px 5px;
}
.ticket-container .info-empty {
  color: #999;
  font-style: italic;
}
.ticket-container .close-ticket {
  display: block;
  width: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(#4bad00), to(#278811));
  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: -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 #999 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: #eee;
  color: #777;
  border-bottom: 1px solid #999;
  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), 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: #F5F5F5;
}

.wmd-prompt-dialog > div {
  font-size: 0.8em;
  font-family: arial, helvetica, 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: trebuchet MS, helvetica, 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 #ccc;
  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: #9c3706;
  -webkit-box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.1);
          box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.1);
  border-radius: 12px;
  outline: none;
}
.wmd-wrapper-minimal .minimal-input::-webkit-input-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: #00007d;
  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: #ccc;
  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: #9c3706;
  color: white;
  cursor: pointer;
}
.wmd-wrapper-minimal .minimal-submit-btn.active:hover {
  background: rgb(106.8888888889, 37.6851851852, 4.1111111111);
}
.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: #00007d;
}
.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 #ccc;
  border-radius: 4px;
  background: #f1f2f2;
  color: #00007d;
  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: #9c3706;
  border-color: #9c3706;
  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 #ccc;
}
.full-editor-actions .full-cancel-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: #00007d;
  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: #9c3706;
  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(106.8888888889, 37.6851851852, 4.1111111111);
}
.full-editor-actions .full-submit-btn:disabled {
  background: #ccc;
  color: #606060;
  cursor: not-allowed;
}

div.dmmd-preview {
  padding: 0;
}

div.dmmd-preview-update {
  background: #ccc;
  color: #333;
  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: -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 #ddd;
  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 #ddd;
  margin-bottom: 20px;
  padding-top: 10px;
  border-radius: 5px;
  -webkit-box-shadow: 0 2px 4px #ccc;
          box-shadow: 0 2px 4px #ccc;
}
.lesson-list li.lesson-locked {
  opacity: 0.7;
  background: #f1f2f2;
  cursor: not-allowed;
  padding-bottom: 10px;
}
.lesson-list li.lesson-locked:hover {
  -webkit-box-shadow: 0 2px 4px #ccc;
          box-shadow: 0 2px 4px #ccc;
  background: #f1f2f2;
}
.lesson-list li.lesson-locked .lesson-lock-icon {
  color: #ae0000;
  margin-right: 0.3em;
}
.lesson-list li.lesson-locked .locked-text {
  color: #ae0000;
  font-weight: bold;
}
.lesson-list li.lesson-locked .prerequisite-info {
  font-size: 0.85em;
  color: #00007d;
  margin-left: 1em;
  margin-right: 1em;
  margin-top: 0.5em;
  padding-top: 0.5em;
  border-top: 1px dashed #ccc;
}
.lesson-list li.lesson-locked .prerequisite-info i {
  margin-right: 0.3em;
  color: #ccc;
}
.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: #e0e0e0;
  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 #eee;
  padding: 10px;
  border-radius: 5px;
}
.course-problem-list .problem-name {
  margin-left: 10px;
}
.course-problem-list li:hover {
  background: #e0e0e0;
}
.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 #ddd;
  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: #333;
}
.course-contest-card p, .course-lesson-card p {
  margin: 5px 0;
  color: #555;
}
.course-contest-card .problem-codes, .course-lesson-card .problem-codes {
  font-family: monospace;
  color: #666;
  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: #999;
}

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

.add-member-form {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  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 #ddd;
  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: #007bff;
  color: white;
}
.role-badge.role-assistant {
  background-color: #28a745;
  color: white;
}
.role-badge.role-student {
  background-color: #6c757d;
  color: white;
}

.role-select {
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  min-width: 100px;
}
.role-select:hover {
  border-color: #999;
}
.role-select:focus {
  outline: none;
  border-color: #007bff;
  -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: #666;
  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: #00007d;
  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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: move;
}
.edit-lessons-page.order-tab .sortable-item:hover {
  background: #ededed;
}
.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: #666;
}
.edit-lessons-page.order-tab .item-order {
  min-width: 30px;
  font-weight: bold;
  color: #00007d;
}
.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: #00007d;
  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: #555;
  font-size: 0.9em;
}
.edit-lessons-page.order-tab .item-meta .item-points {
  font-weight: 500;
  color: #00007d;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit {
  width: 3.5em;
  border: 1px solid #999;
  background: #fff;
  color: #00007d;
  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: #00007d;
}
.edit-lessons-page.order-tab .item-meta .inline-points-edit:focus {
  border-color: #9c3706;
  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: #ae0000;
}
.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: #ae0000;
}
.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: #00007d;
  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 #ccc;
  text-align: left;
}
.edit-lessons-page.prerequisites-tab .prereq-table th {
  background-color: #f1f2f2;
  font-weight: bold;
}
.edit-lessons-page.prerequisites-tab .prereq-table tr:hover:not(.add-row) {
  background-color: #f1f2f2;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-arrow {
  text-align: center;
  width: 40px;
  color: #00007d;
}
.edit-lessons-page.prerequisites-tab .prereq-table .add-row {
  background-color: #f1f2f2;
}
.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 #ccc;
  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: #ae0000;
  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 #ccc;
  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: #9c3706;
}
.edit-lessons-page.prerequisites-tab .prereq-table .prereq-percentage-cell .edit-percentage:disabled {
  background-color: #f1f2f2;
  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: #ae0000;
  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: #00007d;
  padding: 30px;
  background: #f1f2f2;
  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 #ccc;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #00007d;
}
.edit-lessons-page.prerequisites-tab .prereq-json-section .prereq-json-textarea {
  width: 100%;
  font-family: monospace;
  font-size: 0.9em;
  padding: 10px;
  border: 1px solid #ccc;
  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 #ccc;
}
.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: -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-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: #f7fafc;
  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: #f7fafc;
  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: #333;
}
.course-create-page .course-info ul {
  margin: 10px 0;
  padding-left: 20px;
}
.course-create-page .course-info li {
  margin: 5px 0;
  color: #666;
}
.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: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 20px 0;
}
.course-enrollment-page .enrollment-message h2 {
  color: #495057;
  margin-bottom: 20px;
}
.course-enrollment-page .enrollment-message p {
  color: #6c757d;
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.5;
}
.course-enrollment-page .course-info {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.course-enrollment-page .course-info h3 {
  color: #495057;
  margin-bottom: 15px;
}
.course-enrollment-page .enrollment-form {
  display: inline;
}
.course-enrollment-page .enrollment-form form {
  display: inline;
}

.course-tag {
  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: #333;
}
.org-course-edit-page .course-info ul {
  margin: 10px 0;
  padding-left: 20px;
}
.org-course-edit-page .course-info li {
  margin: 5px 0;
  color: #666;
}
.org-course-edit-page .form-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  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);
}

.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 #ccc;
  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: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #333;
  background: transparent;
  border: none;
  -webkit-transition: all 0.15s ease;
  -moz-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.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: #555;
}
.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: 6px 0 0 6px;
}
.actionbar .like-button.voted {
  color: #9c3706;
  background: rgba(156, 55, 6, 0.1);
}
.actionbar .like-button.voted i {
  font-weight: 900;
}
.actionbar .like-button.voted:hover {
  background: rgba(156, 55, 6, 0.15);
  color: #9c3706;
}
.actionbar .dislike-button {
  padding-left: 0.6rem;
  border-radius: 0 6px 6px 0;
}
.actionbar .dislike-button.voted {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}
.actionbar .dislike-button.voted i {
  font-weight: 900;
}
.actionbar .dislike-button.voted:hover {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}
.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: #3b82f6;
  background: rgba(59, 130, 246, 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: #393630;
  font-size: 2.5em;
  margin-bottom: 0.2em;
}
.contest-problemset .contest-header h2 {
  color: #666;
  font-size: 1.5em;
  margin-top: 0;
}
.contest-problemset .contest-header .back-link {
  margin-top: 1em;
}
.contest-problemset .contest-header .back-link a {
  color: #007bff;
  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 #eee;
  padding-bottom: 2em;
}
.contest-problemset .problem-section:last-child {
  border-bottom: none;
}
.contest-problemset .problem-title {
  color: #393630;
  font-size: 2em;
  border-bottom: 2px solid #007bff;
  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: #007bff;
  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: #007bff;
  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 #e9ecef;
  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 #007bff;
  margin: 1.5em 0;
  color: #666;
  background: #f9f9f9;
  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: #f1f2f2;
  border-radius: 0.5em;
  border: 1px solid #ccc;
}
.user-upload-page .storage-summary h4 {
  margin: 0 0 10px 0;
  color: #00007d;
  font-size: 14px;
  font-weight: 600;
}
.user-upload-page .storage-summary p {
  margin: 0;
  font-size: 13px;
  color: #00007d;
  opacity: 0.8;
}
.user-upload-page .storage-bar {
  width: 100%;
  height: 20px;
  background: #ededed;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.user-upload-page .storage-used {
  height: 100%;
  background: -webkit-gradient(linear, left top, right top, from(#9c3706), to(rgb(195.2888888889, 68.8518518519, 7.5111111111)));
  background: -moz-linear-gradient(left, #9c3706, rgb(195.2888888889, 68.8518518519, 7.5111111111));
  background: linear-gradient(90deg, #9c3706, rgb(195.2888888889, 68.8518518519, 7.5111111111));
  -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: #f1f2f2;
  border-radius: 8px;
  border: 2px dashed #ccc;
}
.user-upload-page .upload-section h4 {
  margin: 0 0 10px 0;
  color: #00007d;
  font-size: 14px;
  font-weight: 600;
}
.user-upload-page .upload-section small {
  display: block;
  margin-top: 8px;
  color: #00007d;
  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 #ccc;
  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: #ededed;
  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(#9c3706), to(rgb(195.2888888889, 68.8518518519, 7.5111111111)));
  background: -moz-linear-gradient(left, #9c3706, rgb(195.2888888889, 68.8518518519, 7.5111111111));
  background: linear-gradient(90deg, #9c3706, rgb(195.2888888889, 68.8518518519, 7.5111111111));
  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: #00007d;
  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(174, 0, 0, 0.1);
  color: #ae0000;
  border: 1px solid rgba(174, 0, 0, 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 #ccc;
  border-radius: 0.5em;
}
.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: #00007d;
}
.user-upload-page #file-search {
  width: 100%;
  padding: 8px 8px 8px 35px;
  border: 1px solid #ccc;
  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 #ccc;
  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 #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  color: #00007d;
}
.user-upload-page .view-btn.active {
  background: #9c3706;
  color: white;
  border-color: #9c3706;
}
.user-upload-page .view-btn:hover:not(.active) {
  background: #f1f2f2;
}
.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 #ccc;
  border-radius: 0.5em;
}
.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 #ccc;
  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: #00007d;
  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: #f1f2f2;
}
.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: #00007d;
}
.user-upload-page .file-meta {
  font-size: 12px;
  color: #00007d;
  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 #ccc;
  border-radius: 4px;
  background: white;
  color: #00007d;
  cursor: pointer;
  text-decoration: none;
}
.user-upload-page .btn-action:hover {
  background: #f1f2f2;
  color: #00007d;
}
.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: #007bff;
}
.user-upload-page .btn-action.rename-btn:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
}
.user-upload-page .btn-action.btn-danger {
  color: #ae0000;
}
.user-upload-page .btn-action.btn-danger:hover {
  background: rgba(174, 0, 0, 0.1);
  border-color: #ae0000;
}
.user-upload-page .no-files {
  text-align: center;
  padding: 50px;
  color: #00007d;
  opacity: 0.7;
}
.user-upload-page .no-files i {
  color: #00007d;
  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: #f8f9fa;
  border: 1px solid #dee2e6;
  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: #007bff;
  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: #6c757d;
}
.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: #f8f9fa;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}
.notification-page .notification-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #dee2e6;
  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: #f8f9fa;
  opacity: 0.8;
}
.notification-page .notification-row:hover {
  background-color: #e9ecef;
}
.notification-page {
  /* Content styling */
}
.notification-page .notification-content {
  max-width: 400px;
  word-wrap: break-word;
  cursor: pointer;
}
.notification-page .notification-content a {
  color: #007bff;
  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: #f1f2f2 !important;
  border: 1px solid #ccc !important;
  color: #00007d !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(227.7777777778, 229.7222222222, 229.7222222222) !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 #ccc;
  border-radius: 3px;
  background: white;
}
.quiz-field-wrapper textarea {
  min-height: 100px;
}
.quiz-field-wrapper select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  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 #ccc;
}

.form-actions {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  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 #ccc;
  -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 #ccc;
  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(233.0666666667, 234.6333333333, 234.6333333333);
}
.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 #ccc;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: inherit;
  background: white;
}
.quiz-attempt-page .question-card .question-textarea:focus {
  border-color: #9c3706;
  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 #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
  background: white;
}
.quiz-attempt-page .question-card .short-answer-input:focus {
  border-color: #9c3706;
  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 #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.quiz-attempt-page .question-card .essay-wrapper:focus-within {
  border-color: #9c3706;
  -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: #f1f2f2;
  border-bottom: 1px solid #ccc;
}
.quiz-attempt-page .question-card .markdown-toolbar button {
  padding: 0.4rem 0.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 3px;
  color: #00007d;
  font-size: 0.9rem;
}
.quiz-attempt-page .question-card .markdown-toolbar button:hover {
  background: rgb(233.0666666667, 234.6333333333, 234.6333333333);
}
.quiz-attempt-page .question-card .markdown-toolbar .separator {
  width: 1px;
  background: #ccc;
  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: #f1f2f2;
}
.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 #ccc;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: white;
}
.quiz-edit-page .quiz-questions .question-item:hover {
  background: rgb(233.0666666667, 234.6333333333, 234.6333333333);
}
.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 #ccc;
  border-radius: 4px;
  min-width: 200px;
}
.question-bank-page .filter-bar .filter-form select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  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: #f1f2f2;
  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 #ccc;
  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: #f1f2f2;
  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 #ccc;
  -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 #ccc;
  border-radius: 4px;
  font-size: inherit;
  background: white;
}
.grading-page .answer-card .grade-input input[type=number]:focus {
  border-color: #9c3706;
  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 #ccc;
  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: #9c3706;
  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: #999;
}
.grading-page .answer-card .feedback-input textarea:-ms-input-placeholder {
  color: #999;
}
.grading-page .answer-card .feedback-input textarea::placeholder {
  color: #999;
}
.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: #9c3706;
  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 #ccc;
  -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: #f1f2f2;
  border-radius: 4px;
}
.sidebar-timer .timer-value {
  font-size: 1.4rem;
  font-weight: bold;
  font-family: var(--md-code-font-family), monospace;
}
.sidebar-timer .timer-label {
  font-size: 0.75rem;
  color: #666;
}
.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: #f1f2f2;
  border: 1px solid #ccc;
  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(233.0666666667, 234.6333333333, 234.6333333333);
}
.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 #ccc;
}
.quiz-header-bar .quiz-title {
  font-size: 1.1rem;
  font-weight: bold;
}
.quiz-header-bar .quiz-meta {
  color: #666;
  font-size: 0.9rem;
}

.question-card {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
}
.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 #ccc;
  -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 #ccc;
  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(233.0666666667, 234.6333333333, 234.6333333333);
}
.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 #ccc;
  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: #9c3706;
  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 #ccc;
}
.submit-section p {
  margin-bottom: 1rem;
  color: #666;
}

.essay-editor-container {
  border: 2px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.essay-editor-container:focus-within {
  border-color: #9c3706;
  -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: #f1f2f2;
  padding: 0.25rem;
  border-bottom: 1px solid #ccc;
}
.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: #999;
}
.essay-editor-container .wmd-input:-ms-input-placeholder {
  color: #999;
}
.essay-editor-container .wmd-input::placeholder {
  color: #999;
}
.essay-editor-container .wmd-preview {
  display: none !important;
}

.sa-editor-container {
  border: 2px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.sa-editor-container:focus-within {
  border-color: #9c3706;
  -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: #f1f2f2;
  padding: 0.25rem;
  border-bottom: 1px solid #ccc;
}
.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: #999;
}
.sa-editor-container .wmd-input:-ms-input-placeholder {
  color: #999;
}
.sa-editor-container .wmd-input::placeholder {
  color: #999;
}
.sa-editor-container .wmd-preview {
  display: none !important;
}

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

.file-upload-zone {
  border: 2px dashed #ccc;
  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: #f1f2f2;
  color: #666;
}
.file-upload-zone:hover {
  border-color: #999;
  background: rgb(233.0666666667, 234.6333333333, 234.6333333333);
}
.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: #999;
}
.file-upload-zone .file-input {
  display: none;
}

.file-upload-info {
  font-size: 0.8rem;
  color: #888;
  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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  gap: 0.5rem;
}
.uploaded-files-list li.uploading {
  opacity: 0.7;
}
.uploaded-files-list .file-icon {
  color: #666;
}
.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: #888;
  font-size: 0.85rem;
}
.uploaded-files-list .file-delete-btn {
  background: none;
  border: none;
  color: #999;
  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 #ccc;
  line-height: 1.8;
  font-size: 15px;
}
.grading-page .attempt-info p {
  margin: 0.25rem 0;
}
.grading-page .answer-card {
  border: 1px solid #ccc;
}
.grading-page .answer-card .question-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.5rem;
}
.grading-page .answer-card .answer-content {
  background: #f1f2f2;
  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 #ccc;
  border-radius: 4px;
  font-size: inherit;
  background: white;
}
.grading-page .grade-input input[type=number]:focus {
  border-color: #9c3706;
  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: #f1f2f2;
  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 #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}
.grading-page .quick-grade-btns button:hover {
  background: #9c3706;
  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 #ccc;
  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: #9c3706;
  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: #999;
}
.grading-page .feedback-input textarea:-ms-input-placeholder {
  color: #999;
}
.grading-page .feedback-input textarea::placeholder {
  color: #999;
}
.grading-page .file-attachments {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f1f2f2;
  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: #f1f2f2;
  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: #666;
}
.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 #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}
.grading-page .feedback-editor-container:focus-within {
  border-color: #9c3706;
  -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: #f1f2f2;
  padding: 0.25rem;
  border-bottom: 1px solid #ccc;
}
.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: #999;
}
.grading-page .feedback-editor-container .wmd-input:-ms-input-placeholder {
  color: #999;
}
.grading-page .feedback-editor-container .wmd-input::placeholder {
  color: #999;
}
.grading-page .feedback-editor-container .wmd-preview {
  display: none !important;
}

.quiz-result-page .answer-files {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f1f2f2;
  border-radius: 4px;
}
.quiz-result-page .answer-files h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}
.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: #666;
}
.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: #888;
  font-size: 0.85rem;
}

.file-item-collapsible {
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f2f2;
  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: #f1f2f2;
}
.file-item-collapsible .file-item-header .file-icon {
  color: #666;
}
.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: #888;
  font-size: 0.85rem;
}
.file-item-collapsible .file-item-header .file-delete-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
}
.file-item-collapsible .file-item-header .file-delete-btn:hover {
  color: #ae0000;
}
.file-item-collapsible .file-item-header .file-preview-toggle {
  background: none;
  border: none;
  color: #00007d;
  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 #ccc;
  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 #ccc;
}

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

.stat-label {
  color: #666;
  font-size: 0.9em;
}

.distribution-chart {
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.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 #ccc;
  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 #ccc;
  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 #ccc;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: #f1f2f2;
}
.quiz-create-container .question-item:hover,
.quiz-edit-container .question-item:hover {
  background: rgb(233.0666666667, 234.6333333333, 234.6333333333);
}
.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: #666;
  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 #ccc;
  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 #ccc;
}
.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: #f1f2f2;
  padding: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.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 #ccc;
  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(227.7777777778, 229.7222222222, 229.7222222222);
}
.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 #ccc;
}
.quiz-info-item:last-child {
  border-bottom: none;
}
.quiz-info-item:first-child {
  padding-top: 0.3em;
}

.quiz-info-label {
  color: #00007d;
  opacity: 0.7;
  font-size: 0.95em;
}

.quiz-info-value {
  font-weight: 600;
  color: #9c3706;
  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 #ccc;
}
.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 #ccc;
  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 #ccc;
  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: #666;
}
.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: #666;
}
.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: #666;
}
.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: #f1f2f2;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.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 #ccc;
}
.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: #666;
  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 #ccc;
  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: #999;
}
.question-create-container .choice-item input[type=text]:-ms-input-placeholder, .question-edit-container .choice-item input[type=text]:-ms-input-placeholder {
  color: #999;
}
.question-create-container .choice-item input[type=text]::placeholder,
.question-edit-container .choice-item input[type=text]::placeholder {
  color: #999;
}
.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 #ccc;
  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: #999;
}
.question-create-container .choice-item .choice-text-input:-ms-input-placeholder, .question-edit-container .choice-item .choice-text-input:-ms-input-placeholder {
  color: #999;
}
.question-create-container .choice-item .choice-text-input::placeholder,
.question-edit-container .choice-item .choice-text-input::placeholder {
  color: #999;
}
.question-create-container .choice-item .choice-text-input:focus,
.question-edit-container .choice-item .choice-text-input:focus {
  border-color: #9c3706;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.15);
          box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.15);
}
.question-create-container .choice-item .choice-label-badge,
.question-edit-container .choice-item .choice-label-badge {
  background: #f1f2f2;
  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 #9c3706;
  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: #f1f2f2;
  padding: 0.25rem;
  border-bottom: 1px solid #ccc;
}
.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 #ccc;
  color: #00007d;
  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: #9c3706;
  color: white;
  border-color: #9c3706;
}
.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: #00007d;
  -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: #999;
}
.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: #999;
}
.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: #999;
}
.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 #ccc;
  border-radius: 4px;
}
.question-create-container .sa-editor,
.question-edit-container .sa-editor {
  margin-top: 1rem;
  padding: 1rem;
  background: #f1f2f2;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.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 #ccc;
  border-radius: 4px;
  background: white;
  color: #00007d;
}
.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: #999;
}
.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: #999;
}
.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: #999;
}
.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 #ccc;
}
.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 #9c3706;
  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: #f1f2f2;
  padding: 0.25rem;
  border-bottom: 1px solid #ccc;
}
.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 #ccc;
  color: #00007d;
  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: #9c3706;
  color: white;
  border-color: #9c3706;
}
.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: #00007d;
  -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: #999;
}
.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: #999;
}
.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: #999;
}
.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 #ccc;
  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: #f1f2f2;
  border: 1px solid #ccc;
  color: #00007d;
  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: #9c3706;
  color: white;
  border-color: #9c3706;
}
.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 #ccc;
  border-radius: 0.5em;
  background: #f1f2f2;
}
.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 #ccc;
  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: monospace;
  font-size: 13px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  background: white;
  color: #00007d;
}

.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: #f1f2f2;
  border: 1px solid #9c3706;
  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: #00007d;
  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: #9c3706;
  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 #9c3706;
  border-radius: 0 0 4px 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: inherit;
  background: white;
  color: #00007d;
}
.inline-expanded-wrapper .inline-expanded-textarea:focus {
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.15);
          box-shadow: 0 0 0 2px rgba(156, 55, 6, 0.15);
}
.inline-expanded-wrapper .inline-expanded-textarea::-webkit-input-placeholder {
  color: #999;
}
.inline-expanded-wrapper .inline-expanded-textarea:-ms-input-placeholder {
  color: #999;
}
.inline-expanded-wrapper .inline-expanded-textarea::placeholder {
  color: #999;
}
.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: #f1f2f2;
  border: 1px solid #ccc;
  color: #00007d;
  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: #9c3706;
  color: white;
  border-color: #9c3706;
}
.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: #f1f2f2;
}
.quiz-manage-page .manage-tabs a.active {
  background: #9c3706;
  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: #666;
}
.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: #666;
}
.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: #666;
}
.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 #ccc;
}
.quiz-attempt-list-page .empty-state .empty-icon {
  color: #666;
}

.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: #666;
  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 #ccc;
}
.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: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.question-analysis-page .choice-distribution {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}
.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: #f1f2f2;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 1rem;
}
.question-analysis-page .choice-bar-fill {
  height: 100%;
  background: #9c3706;
}
.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: #f1f2f2;
  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: #666;
}

.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: #666;
}

.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: #6c757d;
  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: #9c3706;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.75em;
  border-bottom: 1px solid #ccc;
  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: #f1f2f2;
  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: #00007d;
  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 #ccc;
  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: #9c3706;
}
.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 #ccc;
}
.quiz-import-page .import-status.show {
  display: block;
}
.quiz-import-page .import-status.analyzing {
  border-left: 4px solid #9c3706;
}
.quiz-import-page .import-status.done {
  border-left: 4px solid green;
}
.quiz-import-page .import-status.error {
  border-left: 4px solid #ae0000;
}
.quiz-import-page .import-results {
  display: none;
}
.quiz-import-page .import-results.show {
  display: block;
}
.quiz-import-page .import-summary-box {
  border: 1px solid #ccc;
  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 #ccc;
  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 #ccc;
  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: #f1f2f2;
}
.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 #ccc;
  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 #ccc;
  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 #ccc;
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
  color: inherit;
}
.quiz-import-page .import-field-row textarea {
  resize: vertical;
  font-family: 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: 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 #ccc;
  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: 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 #ccc;
  border-radius: 4px;
  font-family: 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 #ccc;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
}
.quiz-import-page .import-sa-add-btn:hover {
  opacity: 1;
  border-color: #9c3706;
}
.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: #9c3706;
}
.quiz-import-page .question-type-badge.badge-MA {
  background: #191970;
}
.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: #00007d;
}
.quiz-import-page .import-quiz-section {
  border: 1px solid #ccc;
  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: #f1f2f2;
}
.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 #ccc;
}
.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: #ae0000;
}
.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 #ccc;
  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: #ae0000 !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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  padding: 20px;
  margin-bottom: 20px;
}
.theme-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #00007d;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}
.theme-section h3 i {
  margin-right: 8px;
}
.theme-section .section-label {
  font-weight: bold;
  margin-bottom: 10px;
  color: #00007d;
}
.theme-section .section-description {
  color: #666;
  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 #ccc;
  border-radius: 0.5em;
  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: #9c3706;
}
.mode-toggle .mode-option.active {
  border-color: #9c3706;
  background: rgb(250.6111111111, 176.7314814815, 140.8888888889);
}
.mode-toggle .mode-option i {
  font-size: 2em;
  margin-bottom: 10px;
  color: #00007d;
}
.mode-toggle .mode-option span {
  color: #00007d;
}
.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: 0.5em;
  border: 1px solid #ccc;
  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: #666;
  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 #ccc;
  border-radius: 0.5em;
  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: #9c3706;
  -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: #ededed;
  font-size: 0.85em;
  color: #00007d;
  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 #ccc;
}
.admin-upload-inline input[type=file] {
  padding: 5px;
  font-size: 0.9em;
}
.admin-upload-inline .secondary-btn {
  background: #ededed;
  color: #00007d;
}
.admin-upload-inline .secondary-btn:hover {
  background: rgb(224.25, 224.25, 224.25);
}

.admin-samples-manager {
  margin-top: 15px;
  padding: 15px;
  background: rgba(240, 173, 78, 0.1);
  border: 1px dashed #e6c300;
  border-radius: 0.5em;
}
.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: 0.5em;
  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: #ae0000;
  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: #7b0000;
}

.custom-upload-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
}
.custom-upload-section .custom-upload-form {
  margin-top: 10px;
}
.custom-upload-section .upload-hint {
  margin-top: 10px;
  font-size: 0.85em;
  color: #666;
}
.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 #ccc;
  border-radius: 0.5em;
  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: #9c3706;
}
.effect-option.selected {
  border-color: #9c3706;
  background: rgb(250.6111111111, 176.7314814815, 140.8888888889);
}
.effect-option .effect-icon {
  width: 40px;
  height: 40px;
  background: #ededed;
  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: #00007d;
}
.effect-option span {
  color: #00007d;
  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 #ccc;
  border-radius: 0.5em;
  background: #f1f2f2;
  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: #9c3706;
  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: #9c3706;
  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: #ededed;
}
.chatbot-messages .message.assistant .message-body .message-content {
  background: #ededed;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid #ccc;
}
.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 #ccc;
  background: #f1f2f2;
  color: #00007d;
  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: #ae0000;
  border-color: #ae0000;
}
.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: 14px;
  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: #ededed;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid #ccc;
  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: #9c3706;
  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: #9c3706;
  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: #9c3706;
  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 #ccc;
  background: #ededed;
  -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 #ccc;
}

.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 #ccc;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  min-height: 40px;
  max-height: 150px;
  background: #f1f2f2;
}
.chatbot-input textarea:focus {
  outline: none;
  border-color: #9c3706;
}
.chatbot-input textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chatbot-input textarea::-webkit-input-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 #ccc;
  color: inherit;
  opacity: 0.6;
}
.chatbot-input #clear-chat-btn:hover {
  opacity: 1;
  border-color: #ae0000;
  color: #ae0000;
}
.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 #ccc;
  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: #9c3706;
  color: #9c3706;
}
.chatbot-input .model-selector .model-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 4px;
  background: #f1f2f2;
  border: 1px solid #ccc;
  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: #9c3706;
}
.chatbot-input .model-selector .model-dropdown .model-option:hover {
  background: #ededed;
}
.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 #ccc;
  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: #9c3706;
}
.package-import-page .import-status {
  margin: 15px 0;
  padding: 12px 15px;
  border-radius: 6px;
  display: none;
  border: 1px solid #ccc;
}
.package-import-page .import-status.show {
  display: block;
}
.package-import-page .import-status.analyzing {
  border-left: 4px solid #9c3706;
}
.package-import-page .import-status.done {
  border-left: 4px solid green;
}
.package-import-page .import-status.error {
  border-left: 4px solid #ae0000;
}
.package-import-page .import-field {
  border: 1px solid #ccc;
  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 #ccc;
  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 #ccc;
  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 #ccc;
}
.package-import-page .import-field-body.show {
  display: block;
}
.package-import-page .import-field-preview {
  max-height: 300px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #ccc;
}
.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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.live-toast .toast-score {
  color: #555;
  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: -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: -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: -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: -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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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(241, 242, 242, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid #ccc;
  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: #00007d;
}
.resolver-page .resolver-speed-control label {
  font-weight: 500;
  opacity: 0.7;
}
.resolver-page .resolver-speed-control input[type=range] {
  width: 80px;
  accent-color: #9c3706;
}
.resolver-page .resolver-speed-control input[type=number] {
  border: 1px solid #ccc;
  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: #00007d;
  font-weight: 500;
  opacity: 0.8;
}
.resolver-page .resolver-toggle input[type=checkbox] {
  accent-color: #9c3706;
}
.resolver-page .resolver-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #ccc;
  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(231.9, 231.9, 231.9);
}
.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: #00007d;
  border-bottom: 2px solid #ccc;
}
.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(156, 55, 6, 0.04);
}
.resolver-page #resolver-table td {
  padding: 6px 6px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(204, 204, 204, 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: #00007d;
}
.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: #00007d;
  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 #ccc;
}
.resolver-page #resolver-table .resolver-score-col,
.resolver-page #resolver-table .resolver-score-cell {
  text-align: center;
  font-weight: 600;
  min-width: 64px;
  color: #00007d;
}
.resolver-page #resolver-table .resolver-solving-time {
  font-size: 0.78em;
  font-weight: 400;
  color: #00007d;
  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(0, 0, 125, 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(156, 55, 6, 0.12) !important;
  -webkit-box-shadow: inset 4px 0 0 #9c3706;
          box-shadow: inset 4px 0 0 #9c3706;
}
.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: -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: #f1f2f2;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:-moz-full-screen {
  background: #f1f2f2;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:-ms-fullscreen {
  background: #f1f2f2;
  padding: 24px;
  overflow-y: auto;
}
.resolver-page:fullscreen {
  background: #f1f2f2;
  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 #ccc;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  padding: 8px 16px;
}
.semantic-search-page .semantic-search-tab.active {
  background: #f1f2f2;
  border-bottom-color: #f1f2f2;
  font-weight: bold;
}
.semantic-search-page .semantic-search-controls {
  margin: 0 0 16px;
}
.semantic-search-page .semantic-search-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 16px;
  background: #f1f2f2;
  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: #999;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea:-ms-input-placeholder {
  color: #999;
  opacity: 1;
  text-align: left;
}
.semantic-search-page .semantic-search-card textarea::placeholder {
  color: #999;
  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: #00007d;
  font-size: 0.9em;
  margin-top: 4px;
}
.semantic-search-page .semantic-type-tag {
  display: inline-block;
  background: #f1f2f2;
  border: 1px solid #ccc;
  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 #ccc;
  border-radius: 6px;
  padding: 8px 16px;
}
.internal-duplicate-problems-page .duplicate-report-tab.active,
.internal-duplicate-problem-detail-page .duplicate-report-tab.active {
  background: #f1f2f2;
  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: #00007d;
  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: #f1f2f2;
  border: 1px solid #ccc;
  border-radius: 6px;
  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: #ededed;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px;
}
.internal-duplicate-problem-detail-page .verification-passed {
  background: rgba(156, 55, 6, 0.12);
}
.internal-duplicate-problem-detail-page .verification-failed {
  background: rgba(174, 0, 0, 0.12);
}
.internal-duplicate-problem-detail-page .duplicate-merge-card {
  border-color: #ae0000;
}
.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: #ae0000;
}

.auto-review-badge.auto-review-badge-running,
.auto-review-badge.auto-review-badge-none {
  color: #00007d;
  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: #555;
}
.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: #666;
  font-size: 0.9em;
}
.review-list-page .verdict-pill, .review-list-page .publish-pill {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 40px;
  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: #d4edda;
  color: #155724;
}
.review-list-page .verdict-pill.verdict-fail, .review-list-page .verdict-pill.verdict-error {
  background: #f8d7da;
  color: #721c24;
}
.review-list-page .verdict-pill.verdict-running {
  background: #d1ecf1;
  color: #0c5460;
}
.review-list-page .verdict-pill.verdict-none {
  background: #e2e3e5;
  color: #383d41;
}
.review-list-page .publish-pill {
  border-radius: 5px;
  font-weight: 500;
}
.review-list-page .publish-pill.publish-pending {
  background: #fff3cd;
  color: #856404;
}
.review-list-page .publish-pill.publish-approved {
  background: #d4edda;
  color: #155724;
}
.review-list-page .publish-pill.publish-rejected {
  background: #f8d7da;
  color: #721c24;
}
.review-list-page .publish-pill.publish-none {
  opacity: 0.55;
}
.review-list-page .publish-pill.publish-in-contest {
  background: #d1ecf1;
  color: #0c5460;
}
.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: #666;
}
.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 #ccc;
}
#doc-reader .doc-reader-outline {
  width: 300px;
  min-width: 200px;
  max-width: 40%;
  overflow-y: auto;
  border-right: 1px solid #ccc;
  background: #f1f2f2;
  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 #ccc;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f2f2;
}
#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: #00007d;
}
#doc-reader .doc-reader-outline .doc-reader-outline-empty {
  padding: 12px;
  color: #00007d;
  opacity: 0.7;
}
#doc-reader .doc-reader-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #00007d;
  padding: 4px 6px;
  border-radius: 4px;
}
#doc-reader .doc-reader-icon-btn:hover {
  background: #ededed;
}
#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: #00007d;
  border-radius: 4px;
}
#doc-reader .doc-reader-tree li > .doc-reader-node:hover {
  background: #ededed;
}
#doc-reader .doc-reader-tree li.active > .doc-reader-node {
  background: #9c3706;
  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: #9c3706;
  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: #9c3706;
  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: #9c3706;
  text-decoration: none;
}
.library-breadcrumbs a:hover {
  text-decoration: underline;
}
.library-breadcrumbs .sep {
  color: #00007d;
  opacity: 0.5;
  margin: 0 6px;
}
.library-breadcrumbs .current {
  color: #00007d;
  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: #00007d;
}
.library-topbar .library-topbar-right {
  margin-left: auto;
}

.library-hr {
  margin: 0 0 16px;
  border: none;
  border-top: 1px solid #ccc;
}

.library-empty {
  text-align: center;
  color: #00007d;
  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 #ccc;
  border-radius: 8px;
  background: #f1f2f2;
  text-align: center;
}
.library-item:hover {
  border-color: #9c3706;
}
.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: #00007d;
  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: #9c3706;
}
.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 #ccc;
  border-radius: 4px;
  background: #f1f2f2;
  color: #00007d;
  cursor: pointer;
  text-decoration: none;
}
.library-item .btn-action:hover {
  background: #ededed;
}
.library-item .btn-action.lib-download, .library-item .btn-action.lib-rename {
  color: #007bff;
}
.library-item .btn-action.lib-download:hover, .library-item .btn-action.lib-rename:hover {
  border-color: #007bff;
}
.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: #ae0000;
}
.library-item .btn-action.btn-danger:hover {
  border-color: #ae0000;
}

.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: #00007d;
}
.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: #9c3706;
}
.library-catalog .catalog-toggle {
  cursor: pointer;
}
.library-catalog .catalog-toggle:hover {
  background: #ededed;
}
.library-catalog .catalog-chevron {
  width: 12px;
  font-size: 0.8em;
  color: #00007d;
  opacity: 0.7;
}
.library-catalog .catalog-chevron-spacer {
  display: inline-block;
  width: 12px;
}
.library-catalog .catalog-name {
  color: #00007d;
  text-decoration: none;
}
.library-catalog a.catalog-name {
  color: #9c3706;
}
.library-catalog a.catalog-name:hover {
  text-decoration: underline;
}
