*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  font-family: "Inter", Arial, sans-serif;
  background: #0f1624;
  color: #e6edf7;
}
a{ text-decoration: none; color: inherit; }
.top{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  background: #101a2b;
  border-bottom: 1px solid #1b2a44;
  z-index: 10;
}
.top .in{
  max-width: 1150px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #2f6bff;
}
.nav{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 13px;
  color: #9fb2cc;
}
.nav a:hover{ color: #ffffff; }
.search{
  display: flex;
  align-items: center;
  background: #1a263b;
  border: 1px solid #23344f;
  border-radius: 10px;
  padding: 7px 10px;
  width: 220px;
}
.search input{
  background: transparent;
  border: none;
  outline: none;
  color: #dce7ff;
  font-size: 12px;
  width: 100%;
}
.btn{
  background: #2f6bff;
  border: 1px solid #2f6bff;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover{ background: #295fe3; }
.ava{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a263b;
  border: 1px solid #23344f;
}
.main{
  max-width: 1150px;
  margin: 90px auto 60px;
  padding: 0 20px;
}
.crumb{
  color: #93a4bf;
  font-size: 12px;
  margin-bottom: 8px;
}
.head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.h1{
  font-size: 28px;
  margin-bottom: 6px;
}
.sub{ color: #93a4bf; font-size: 14px; }
.prog{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #93a4bf;
}
.bar{
  width: 140px;
  height: 6px;
  background: #0b1320;
  border-radius: 999px;
  border: 1px solid #1f2c3f;
  overflow: hidden;
}
.bar span{
  display: block;
  height: 100%;
  width: 65%;
  background: #2f6bff;
}
.tabs{
  display: flex;
  gap: 18px;
  margin: 16px 0 10px;
  font-size: 13px;
  border-bottom: 1px solid #1f2c3f;
}
.tab{
  padding-bottom: 10px;
  color: #93a4bf;
  border-bottom: 2px solid transparent;
}
.tab.on{
  color: #e6edf7;
  border-bottom-color: #2f6bff;
}
.tab:hover{
  color: #e6edf7;
}
.card{
  background: #121d30;
  border: 1px solid #1f2c3f;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.card h2{ margin-bottom: 6px; }
.grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.editor, .prev{
  background: #1a2438;
  border: 1px solid #253552;
  border-radius: 12px;
  overflow: hidden;
}
.ed-head{
  padding: 10px 12px;
  border-bottom: 1px solid #253552;
  font-size: 12px;
  color: #93a4bf;
  display: flex;
  justify-content: space-between;
}
.dots span{
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #394a63;
  margin-left: 4px;
}
.code{
  padding: 12px;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #c7d4ea;
}
.actions{
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid #253552;
}
.btn-s{
  background: #131c2c;
  color: #e6edf7;
  border: 1px solid #2a3a52;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.btn-s.on{
  background: #2f6bff;
  border-color: #2f6bff;
}
.preview{
  background: #f4f6fb;
  color: #111;
  min-height: 220px;
  padding: 14px;
}
.ok{
  margin-top: 12px;
  font-size: 12px;
  color: #2f6bff;
}
.pager{
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.foot{
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #1f2c3f;
  color: #8aa0be;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 980px){
  .nav{ display: none; }
  .search{ width: 100%; }
  .grid{ grid-template-columns: 1fr; }
  .head{ flex-direction: column; align-items: flex-start; }
}
