:root{
  --bg:#060A12;
  --bg2:#070D18;

  --card: rgba(255,255,255,.055);
  --card2: rgba(255,255,255,.075);
  --stroke: rgba(255,255,255,.12);

  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --muted2: rgba(255,255,255,.48);

  --accent: rgba(0,212,255,.95);
  --blue: rgba(59,130,246,.55);

  --good: rgba(74,222,128,.95);
  --warn: rgba(251,191,36,.95);
  --bad: rgba(248,113,113,.95);

  --r: 18px;
  --r2: 22px;

  --shadow1: 0 14px 40px rgba(0,0,0,.45);
  --shadow2: 0 8px 22px rgba(0,0,0,.35);

  --pad: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--txt);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(0,212,255,.10), transparent 60%),
    radial-gradient(900px 520px at 80% 0%, rgba(59,130,246,.08), transparent 62%),
    radial-gradient(1200px 700px at 50% 120%, rgba(255,255,255,.03), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  background-attachment: fixed;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.018),
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: .35;
  mix-blend-mode: overlay;
}

a{ color: inherit; text-decoration:none; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 12px calc(18px + env(safe-area-inset-bottom));
}

.hero{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow1);
  overflow:hidden;
  position: relative;
}
.hero::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(520px 260px at 10% 20%, rgba(0,212,255,.10), transparent 60%),
    radial-gradient(520px 260px at 90% 0%, rgba(59,130,246,.08), transparent 62%);
  pointer-events:none;
}
.hero-in{
  position: relative;
  padding: 18px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-size: 12px;
}
.hero h1{ margin: 10px 0 6px; font-size: 22px; letter-spacing: .2px; }
.hero p{ margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }

.tabs{
  margin-top: 12px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.tabbar{
  display:flex;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.tab{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  color: var(--txt);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.tab .dot{
  width:10px; height:10px; border-radius:99px;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.tab.active{
  border-color: rgba(0,212,255,.35);
  box-shadow: 0 0 0 4px rgba(0,212,255,.10);
}
.tab.active .dot{
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,212,255,.12);
}

.card{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  box-shadow: var(--shadow2);
  overflow:hidden;
  backdrop-filter: blur(6px);
}
.card-head{
  padding: 14px 16px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.card-head h2{ margin:0; font-size: 15px; letter-spacing: .2px; }
.hint{ color: var(--muted2); font-size: 12px; }

.tools{ display:flex; gap:10px; flex-wrap:wrap; }

.tool{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  color: var(--txt);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px 16px 0;
}


.field{ display:block; padding: 0 16px; margin-top: 14px; }
.grid .field{ padding:0; margin-top:0; }

.field span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.field input,
.field textarea,
.field select{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: var(--txt);
  padding: 13px 12px;
  outline: none;
  font-size: 15px;
}
.field textarea{ resize: vertical; min-height: 160px; }

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: rgba(0,212,255,.45);
  box-shadow: 0 0 0 4px rgba(0,212,255,.10);
}

.actions{
  padding: 14px 16px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.btn{
  width: 100%;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(520px 180px at 10% 0%, rgba(0,212,255,.18), transparent 60%),
    radial-gradient(520px 180px at 110% 0%, rgba(59,130,246,.10), transparent 62%),
    rgba(255,255,255,.06);
  color: var(--txt);
  border-radius: 18px;
  padding: 14px 14px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0,0,0,.30);
}
.btn:disabled{ opacity:.65; cursor:not-allowed; }

.status{
  font-size: 13px;
  color: var(--muted);
  padding: 0 16px 16px;
}
.status.ok{ color: var(--good); }
.status.warn{ color: var(--warn); }
.status.err{ color: var(--bad); }

.list{ padding: 12px 14px 0; }
.item{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.meta{ min-width:0; }
.title{
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 74vw;
}
.sub{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted2);
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
.link{
  color: rgba(59,130,246,.92);
  border-bottom: 1px dashed rgba(59,130,246,.35);
}
.link:hover{ border-bottom-style: solid; }

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: rgba(0,212,255,.92);
  font-size: 12px;
}

.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 16px 16px;
}
.pagebtn{
  width: 52px; height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  color: var(--txt);
  font-size: 16px;
}
.pagebtn:disabled{ opacity: .55; }

.pageinfo{
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  flex: 1;
}

.cover{
  width:100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  overflow:hidden;
  margin-top: 12px;
}
.cover img{
  width:100%;
  height:auto;
  display:block;
}

.article{
  padding: 14px 16px 16px;
}
.article h1{
  margin: 0 0 8px;
  font-size: 20px;
}
.article .lead{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
.article .content{
  margin-top: 12px;
  color: rgba(255,255,255,.90);
  line-height: 1.7;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed{
  margin-top: 12px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
}
.embed .ratio{
  aspect-ratio: 16/9;
  width:100%;
}
.embed iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.foot{
  text-align:center;
  color: var(--muted2);
  font-size: 12px;
  padding: 12px 0 0;
}