html {
  background: #dce3eb url("tiles/paper.gif") repeat;
  color: #161616;
  font: 13px/1.4 Verdana, Arial, Helvetica, sans-serif;
}
body { margin: 20px 8px; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #0000a8; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover { color: #951910; }
button, input, select { font: 13px Arial, sans-serif; }
:focus-visible { outline: 2px dotted #000098; outline-offset: 2px; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  padding: 5px;
  background: white;
}

.page { position: relative; width: 900px; max-width: 100%; min-height: 640px; margin: 0 auto; }
.site {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  border: 1px solid #768799;
  background: #fff;
}
.masthead, .options { width: 100%; border-spacing: 0; }
.masthead { background: #d4e2f0 url("slices/masthead.gif") repeat-x; }
.masthead td { padding: 3px 8px; vertical-align: middle; }
.masthead h1 { margin: 0; font-size: 18px; }
#wordmark { display: block; max-width: 100%; height: auto; }
.masthead .badge-cell { width: 86px; text-align: right; }
.badge-cell img { vertical-align: middle; }
.site-menu {
  padding: 3px 8px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #a9b7c8;
  background: #edf0f5;
  font-size: 11px;
}
.site-menu span { margin: 0 4px; color: #444; }
main { padding: 15px; overflow-wrap: anywhere; }
h2, h3 { margin: 0; }
main h2, main h3 { color: #203853; font: bold 15px Verdana, Arial, sans-serif; }
#compressor-title {
  padding: 3px 5px;
  border-top: 1px solid #a5b8ce;
  border-bottom: 1px solid #a5b8ce;
  background: #dbe6f0;
}
main p { margin: 5px 0 7px; }
#options { min-width: 0; margin: 0; padding: 0; border: 0; }
.options { table-layout: fixed; border: 1px solid #b7bfc7; background: #f4f5f6; }
.options td { vertical-align: top; padding: 5px 6px; }
.options tr + tr td { border-top: 1px solid #dadfe4; }
.option-label { width: 84px; background: #edf0f3; font-weight: bold; }
.actions { padding: 5px 6px 5px 91px; border: 1px solid #b7bfc7; border-top: 0; background: #e9edf1; }
.dropzone.dragging { outline: 1px dashed #4c5c6f; background: #f9f6d5; }
#file { max-width: 100%; }
#filename { margin: 3px 0 0; color: #222; font-weight: bold; }
.note { color: #404040; }
#fileinfo { margin-top: 2px; }
#custom-label { margin-left: 5px; }
#custom { width: 68px; }
select { max-width: 100%; }
.status { margin: 5px 0 0; }
.status:empty { margin: 0; }
.status.error { color: #8d190e; font-weight: bold; }
#progress-panel { margin: 6px 0 0; white-space: nowrap; }
progress {
  appearance: none;
  vertical-align: middle;
  width: 80%;
  height: 14px;
  padding: 1px;
  border: 1px solid #687686;
  background: white;
}
progress::-webkit-progress-bar { background: white; }
progress::-webkit-progress-value { background: #2c7444 url("slices/meter.gif") repeat-x; }
progress::-moz-progress-bar { background: #2c7444 url("slices/meter.gif") repeat-x; }
.result { margin-top: 6px; padding: 6px; border: 1px solid #a7b3c0; background: #f4f7fa; }
.result dl { margin: 3px 0 6px; }
.result dl div { display: inline-block; margin-right: 8px; }
.result dt { font-weight: bold; }
.result dd { margin: 0; }
.result a { display: inline-block; margin-right: 6px; }
hr { height: 2px; margin: 9px 0 7px; border: 0; background: #9ca8b8 url("slices/rule.gif") repeat-x; }
#privacy p { margin-bottom: 0; }

footer { margin-top: auto; }
.footer-bar {
  padding: 3px 8px;
  border-top: 1px solid #b4bcc4;
  background: #edf0f3;
  text-align: center;
  font: 11px/1.3 Tahoma, sans-serif;
}
.ticker { display: flex; overflow: hidden; background: #a21d17 url("slices/ticker-red.gif") repeat-x; color: #fffadf; }
#ticker-destination { display: block; flex: 1; overflow: hidden; color: inherit; text-decoration: none; }
#ticker-destination:is(a):hover { background-color: #7b120e; }
.ticker-track {
  display: flex;
  width: max-content;
  padding: 4px 0;
  white-space: pre;
  font: bold 10px/14px Verdana, sans-serif;
  animation: ticker 26s linear infinite;
}
@keyframes ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker :focus-visible { outline-color: white; outline-offset: -2px; }
#ticker-toggle {
  width: 25px;
  padding: 0;
  border: 0;
  border-left: 1px solid #df7f73;
  background: #79130e;
  color: #fffadf;
  cursor: pointer;
}
.noscript { margin: 6px; }

.sponsor-rail { position: absolute; top: 0; width: 200px; }
#sponsors-left { right: 100%; margin-right: 20px; }
#sponsors-right { left: 100%; margin-left: 20px; }
.sponsor-rail ul { margin: 0; padding: 0; list-style: none; }
.sponsor-rail li + li { margin-top: 20px; }
.sponsor { display: block; aspect-ratio: 1; }
.sponsor img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.sponsor-empty {
  display: grid;
  place-items: center;
  border: 1px dashed #000;
  background: transparent;
  color: #000;
  font: 13px Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

@media (width < 1380px) {
  .page { min-height: 0; }
  .sponsors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  .sponsor-rail { position: static; width: auto; margin: 0; }
  #sponsors-left, #sponsors-right { margin: 0; }
  #sponsors-right { grid-column: 2; }
}
@media (max-width: 479px) {
  body { margin-inline: 5px; }
  .options td { padding-left: 5px; padding-right: 5px; }
  .option-label { width: 82px; }
  .actions { padding-left: 88px; }
  #custom-label { margin-left: 0; }
  #file, select, #custom, .actions button, #another { min-height: 28px; }
  .site-menu a { display: inline-block; padding: 2px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  #ticker-toggle { display: none; }
}
