/* LeetCraft Talent: intentionally styled like a 2008 job portal. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: #c9d7e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c9d7e8'/%3E%3Crect width='2' height='2' fill='%23c2d1e4'/%3E%3C/svg%3E");
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #222;
}
a { color: #0033cc; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

#wrap {
  width: 940px;
  max-width: calc(100% - 16px);
  margin: 10px auto;
  background: #fff;
  border: 1px solid #7f9db9;
  box-shadow: 2px 2px 0 #9fb3cc;
}
#header {
  background: linear-gradient(#5b8bc6, #2f5a8f 55%, #244a78);
  border-bottom: 3px solid #f7a823;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
#header .logo {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #13294a;
  letter-spacing: -1px;
}
#header .logo .beta {
  font-size: 10px;
  background: #ff6600;
  color: #fff;
  padding: 1px 4px;
  border: 1px solid #fff;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 3px;
}
#header .logo small { font-size: 12px; font-weight: normal; color: #dbe7f5; letter-spacing: 0; display: block; }
#header .user { font-size: 11px; color: #e6eefa; }
#header .user a, #header .user button.linkish { color: #ffffcc; }

#nav {
  background: linear-gradient(#f4f4f4, #dcdcdc);
  border-bottom: 1px solid #aaa;
  padding: 0 6px;
  display: flex;
  flex-wrap: wrap;
}
#nav a, #nav button {
  display: inline-block;
  padding: 6px 12px;
  font: bold 11px Verdana, sans-serif;
  color: #1b3d6b;
  text-decoration: none;
  border: 0;
  border-right: 1px solid #bbb;
  background: none;
  cursor: pointer;
}
#nav a.active, #nav button.active { background: #fff; color: #cc3300; }

#marquee {
  background: #ffffcc;
  border-bottom: 1px solid #e0d080;
  font-size: 11px;
  padding: 3px 0;
  color: #7a5a00;
}

#content { padding: 12px; }
#footer {
  border-top: 1px solid #ccc;
  background: #f2f2f2;
  color: #777;
  font-size: 10px;
  text-align: center;
  padding: 8px;
  line-height: 1.6;
}
#footer .counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  background: #000;
  color: #33ff33;
  padding: 0 4px;
  letter-spacing: 2px;
}

h1 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 20px; color: #1b3d6b; margin: 0 0 8px; }
h2 { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 15px; color: #cc3300; margin: 14px 0 6px; border-bottom: 1px dotted #ccc; padding-bottom: 2px; }
h3 { font-size: 12px; margin: 10px 0 4px; color: #1b3d6b; }
p { line-height: 1.5; margin: 6px 0; }
.small { font-size: 10px; color: #666; }
.muted { color: #666; }
.red { color: #cc0000; }
.green { color: #008000; }
.pre { white-space: pre-wrap; }

.box {
  border: 1px solid #9fb3cc;
  margin: 0 0 12px;
  background: #fff;
}
.box > .box-title {
  background: linear-gradient(#e8f0fa, #c7d8ee);
  border-bottom: 1px solid #9fb3cc;
  padding: 5px 8px;
  font-weight: bold;
  color: #1b3d6b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.box > .box-body { padding: 8px 10px; }

.notice { background: #ffffcc; border: 1px solid #e0d080; padding: 6px 8px; margin: 8px 0; }
.error { background: #ffe5e5; border: 1px solid #cc6666; color: #990000; padding: 6px 8px; margin: 8px 0; }
.ok { background: #e5ffe5; border: 1px solid #66aa66; color: #135c13; padding: 6px 8px; margin: 8px 0; }
.msg:empty { display: none; }

table.grid { border-collapse: collapse; width: 100%; font-size: 11px; }
table.grid th {
  background: linear-gradient(#f4f4f4, #d8d8d8);
  border: 1px solid #aaa;
  padding: 4px 5px;
  text-align: left;
  white-space: nowrap;
}
table.grid td { border: 1px solid #ccc; padding: 4px 5px; vertical-align: top; }
table.grid tr:nth-child(even) td { background: #f3f7fc; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: #ffffcc; }
.table-scroll { overflow-x: auto; }

table.form { border-collapse: collapse; }
table.form td { padding: 4px 6px 4px 0; vertical-align: top; }
table.form td.label { font-weight: bold; text-align: right; white-space: nowrap; padding-top: 7px; }

input[type=text], input[type=email], input[type=number], input[type=url], select, textarea {
  font: 12px Verdana, sans-serif;
  border: 1px solid #7f9db9;
  padding: 3px;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { background: #ffffee; outline: 1px solid #f7a823; }
textarea { width: 100%; }
input.wide { width: 320px; }
input.code {
  font: bold 22px "Courier New", monospace;
  letter-spacing: 8px;
  width: 170px;
  text-align: center;
}

.btn {
  font: bold 11px Verdana, sans-serif;
  color: #1b1b1b;
  background: linear-gradient(#ffffff, #dedede);
  border: 1px solid #777;
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
  text-decoration: none;
  display: inline-block;
  margin: 2px 2px 2px 0;
}
.btn:hover { background: linear-gradient(#fffbe5, #f2dfa0); border-color: #b08800; }
.btn:active { background: #ccc; }
.btn[disabled] { color: #999; cursor: default; }
.btn.go { background: linear-gradient(#9be15d, #44a014); border-color: #2d6e0a; color: #fff; text-shadow: 0 -1px 0 #2d6e0a; }
.btn.go:hover { background: linear-gradient(#b4ef7d, #52b81c); }
.btn.bad { background: linear-gradient(#ff8a7a, #cc2200); border-color: #881600; color: #fff; text-shadow: 0 -1px 0 #881600; }
.btn.big { font-size: 13px; padding: 7px 16px; }
button.linkish { background: none; border: 0; padding: 0; color: #0033cc; text-decoration: underline; cursor: pointer; font: inherit; }

.badge { display: inline-block; font-size: 10px; font-weight: bold; padding: 1px 5px; border: 1px solid; white-space: nowrap; }
.b-applied { background: #eeeeee; border-color: #999; color: #444; }
.b-active, .b-assigned { background: #e5efff; border-color: #6688cc; color: #1b3d6b; }
.b-submitted, .b-pending { background: #fff3cc; border-color: #d4a017; color: #7a5a00; }
.b-hired, .b-paid { background: #dcffd6; border-color: #3c9a2e; color: #1f5e16; }
.b-rejected, .b-disabled { background: #ffe0e0; border-color: #cc6666; color: #990000; }
.b-ugc { background: #f0e6ff; border-color: #8a63c9; color: #4b2a85; }
.b-blender { background: #ffeedd; border-color: #e0802b; color: #8a4300; }
.b-late { background: #cc0000; border-color: #880000; color: #fff; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; border: 1px dashed #9fb3cc; padding: 8px 8px 8px 44px; margin-bottom: 8px; position: relative; background: #fbfdff; }
.steps > li::before {
  content: counter(s);
  position: absolute; left: 8px; top: 8px;
  width: 26px; height: 26px; line-height: 26px;
  text-align: center; font: bold 15px "Trebuchet MS", sans-serif;
  color: #fff; background: #f7a823; border: 1px solid #b07000; border-radius: 13px;
}

.progress { border: 1px solid #7f9db9; height: 16px; background: #fff; width: 100%; max-width: 420px; margin: 6px 0; display: none; }
.progress.on { display: block; }
.progress > div {
  height: 100%; width: 0;
  background: repeating-linear-gradient(45deg, #5fbf2a, #5fbf2a 8px, #7fd94a 8px, #7fd94a 16px);
  transition: width .3s;
}

video { max-width: 100%; max-height: 380px; background: #000; border: 1px solid #333; display: block; margin: 6px 0; }
img.thumb { max-width: 180px; max-height: 180px; border: 1px solid #999; padding: 2px; background: #fff; display: block; margin: 4px 0; }

.cols { display: flex; gap: 12px; flex-wrap: wrap; }
.cols > .main { flex: 1 1 560px; min-width: 0; }
.cols > .side { flex: 0 0 260px; }
@media (max-width: 860px) { .cols > .side { flex: 1 1 100%; } }

.stat { display: inline-block; border: 1px solid #9fb3cc; background: linear-gradient(#fff, #eef3fa); padding: 6px 12px; margin: 0 6px 6px 0; text-align: center; min-width: 90px; }
.stat b { display: block; font-size: 20px; color: #cc3300; font-family: "Trebuchet MS", sans-serif; }

.login-box { width: 440px; max-width: 100%; margin: 20px auto; }
.toolbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
dialog { border: 2px solid #2f5a8f; padding: 0; width: 760px; max-width: calc(100vw - 20px); max-height: calc(100vh - 30px); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog .dlg-title { background: linear-gradient(#5b8bc6, #2f5a8f); color: #fff; font-weight: bold; padding: 5px 8px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; }
dialog .dlg-title button { font: bold 11px Verdana; background: #cc3300; color: #fff; border: 1px solid #fff; cursor: pointer; }
dialog .dlg-body { padding: 10px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; }
dl.kv dt { font-weight: bold; color: #555; }
dl.kv dd { margin: 0; word-break: break-word; }
hr { border: 0; border-top: 1px dotted #aaa; margin: 10px 0; }

/* ---------- UX additions (still 2008 looking) ---------- */
.nextstep {
  border: 2px solid #f7a823;
  background: linear-gradient(#fff8e1, #ffe9a8);
  padding: 8px 10px;
  margin: 0 0 12px;
  font-size: 13px;
}
.nextstep b.big { font-size: 15px; color: #cc3300; display: block; margin-bottom: 2px; }
.nextstep.done { border-color: #3c9a2e; background: linear-gradient(#f0fff0, #d4f5cc); }
.nextstep.done b.big { color: #1f5e16; }

.dropzone {
  display: block;
  border: 2px dashed #7f9db9;
  background: #f3f7fc;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  margin: 6px 0;
}
.dropzone:hover, .dropzone.over { background: #ffffcc; border-color: #f7a823; }
.dropzone input[type=file] { display: none; }
.dropzone .dz-icon { font-size: 26px; line-height: 1; }
.dropzone .dz-file { font-weight: bold; color: #1b3d6b; word-break: break-all; }
.dropzone.has-file { border-style: solid; background: #eef9e8; border-color: #5fbf2a; }

.progress { position: relative; height: 18px; }
.progress .pct { position: absolute; inset: 0; text-align: center; font: bold 11px/18px Verdana, sans-serif; color: #13294a; }

.previews { display: flex; gap: 8px; flex-wrap: wrap; }
.previews img { max-width: 120px; max-height: 120px; border: 1px solid #999; padding: 2px; background: #fff; }

.stat { cursor: pointer; }
.stat:hover { background: linear-gradient(#fffbe5, #f2dfa0); }
.stat.on { outline: 2px solid #f7a823; }
.warnbar { background: #ffe0e0; border: 1px solid #cc6666; color: #990000; padding: 6px 8px; margin: 0 0 10px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare figure { margin: 0; }
.compare figcaption { font-weight: bold; font-size: 11px; color: #555; }
.compare video { width: 100%; max-height: 420px; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.sync-bar { background: #eef3fa; border: 1px solid #9fb3cc; padding: 4px 6px; margin: 4px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.dlg-nav { display: flex; gap: 4px; align-items: center; }
.dlg-nav button { font: bold 11px Verdana; background: #e8f0fa; color: #1b3d6b; border: 1px solid #fff; cursor: pointer; padding: 1px 6px; }
.dlg-nav button[disabled] { opacity: .4; cursor: default; }

#toast {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: #ffffcc; border: 2px solid #c9b200; color: #333; padding: 6px 14px;
  font-weight: bold; box-shadow: 2px 2px 0 rgba(0,0,0,.3); z-index: 1000; display: none; max-width: 90vw;
}
#toast.on { display: block; }
#toast.err { background: #ffe5e5; border-color: #cc0000; color: #990000; }
.copy { font-size: 10px; padding: 0 4px; margin-left: 4px; }
td.check, th.check { width: 18px; text-align: center; }
.bulkbar { background: #fff3cc; border: 1px solid #d4a017; padding: 5px 8px; margin-bottom: 6px; }

/* ---------- exercises ---------- */
.goal { border: 1px solid #9fb3cc; background: #eef3fa; padding: 8px 10px; margin: 8px 0 12px; line-height: 1.5; }
.exo { border: 2px solid #9fb3cc; margin: 0 0 12px; background: #fff; }
.exo > .exo-head { background: linear-gradient(#fdf3d4, #f7dd8c); border-bottom: 1px solid #d4a017; padding: 6px 8px; font-weight: bold; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.exo > .exo-head .num { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #f7a823; color: #fff; border: 1px solid #b07000; border-radius: 11px; margin-right: 6px; }
.exo.optional > .exo-head { background: linear-gradient(#f0f0f0, #dcdcdc); border-bottom-color: #aaa; }
.exo.done { border-color: #5fbf2a; }
.exo > .exo-body { padding: 8px 10px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0; }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } }
.rules > div { border: 1px dashed #bbb; padding: 6px 8px; }
.rules h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.rules .chg h4 { color: #cc3300; }
.rules .keep h4 { color: #1f5e16; }
.rules ul { margin: 0; padding-left: 16px; line-height: 1.5; }
.board { display: flex; gap: 10px; align-items: flex-start; background: #f3f7fc; border: 1px solid #9fb3cc; padding: 6px; margin: 6px 0; }
.board img { width: 90px; border: 1px solid #333; }
.progress-list { margin: 6px 0 0; padding: 0; list-style: none; }
.progress-list li { margin: 2px 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 760px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.grid4 figure { margin: 0; }
.grid4 figcaption { font-weight: bold; font-size: 10px; color: #555; min-height: 26px; }
.grid4 video { width: 100%; max-height: 360px; }
.grid4 .missing { border: 1px dashed #bbb; background: #f6f6f6; color: #999; text-align: center; padding: 40px 4px; font-size: 11px; }

/* ---------- "Ask us a question" ---------- */
.helpbox { border: 2px solid #f7a823; }
.helpbox > .box-title { background: linear-gradient(#fff3c4, #ffd76a); border-bottom-color: #d4a017; color: #7a3d00; }
#ask-float {
  position: fixed; right: 14px; bottom: 14px; z-index: 900;
  font: bold 12px Verdana, sans-serif; color: #fff; text-decoration: none;
  background: linear-gradient(#ff9a3c, #e0590a); border: 2px solid #fff; border-radius: 18px;
  padding: 8px 14px; box-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
#ask-float:hover { background: linear-gradient(#ffb066, #ff6a14); color: #fff; }
@media print { #ask-float { display: none; } }
