:root{
  --bg: #0b0b0f;
  --panel: #111118;
  --panel2: #0f0f15;
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --muted2: rgba(255,255,255,.50);
  --accent: #e50914;
  --accent2: rgba(229,9,20,.22);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 16px;
  --radius2: 12px;
  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(229,9,20,.18), transparent 55%),
    radial-gradient(700px 420px at 88% 5%, rgba(229,9,20,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }

.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border:1px solid var(--border2);
  z-index: 9999;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border:0;
}

.topbar{
  position: sticky;
  top:0;
  z-index: 30;
  background: rgba(11,11,15,.74);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 200px;
}
.brand__mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(229,9,20,.95), rgba(229,9,20,.28)),
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,.35), transparent 55%);
  box-shadow: 0 10px 30px rgba(229,9,20,.25);
  border: 1px solid rgba(255,255,255,.12);
}
.brand__title{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.search{
  display:flex;
  align-items:center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  max-width: 560px;
  width: 100%;
}
.search input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 6px 8px;
}
.search input::placeholder{ color: rgba(255,255,255,.45); }

.badges{
  display:flex;
  align-items:center;
  gap: 8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  user-select: none;
}
.badge--solid{
  background: rgba(255,255,255,.04);
}

.progress{
  height: 2px;
  background: rgba(255,255,255,.05);
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(229,9,20,.35), rgba(229,9,20,.95));
}

.layout{
  display:flex;
  min-height: calc(100vh - 60px);
}

.sidebar{
  width: 290px;
  border-right: 1px solid var(--border);
  background: rgba(17,17,24,.55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow: auto;
}
.sidebar__inner{
  padding: 14px 12px 18px;
}
.sidebar__title{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 6px;
}

.toc{
  display:flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.toc__link{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.80);
  font-size: 14px;
}
.toc__link:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.toc__link.is-active{
  background: rgba(229,9,20,.10);
  border-color: rgba(229,9,20,.35);
  color: rgba(255,255,255,.92);
}

.sidebar__footer{
  padding: 10px 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 10px;
}

.main{
  flex: 1;
  padding: 22px 16px 42px;
}
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero{
  background:
    radial-gradient(700px 380px at 10% 0%, rgba(229,9,20,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: calc(var(--radius) + 6px);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

h1{
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.hero__meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
}
.chip__label{
  color: var(--muted2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chip__value{
  font-weight: 600;
  font-size: 13px;
}

.notice{
  margin-top: 14px;
  border: 1px solid rgba(229,9,20,.22);
  background: rgba(229,9,20,.06);
  border-radius: var(--radius);
  padding: 14px 14px;
}
.notice__title{
  font-weight: 700;
  margin-bottom: 6px;
}
.notice__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}

.card{
  margin-top: 16px;
  background: rgba(17,17,24,.58);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.card__head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.card h3{
  margin: 14px 0 8px;
  font-size: 16px;
}
.card h4{
  margin: 10px 0 8px;
  font-size: 14px;
  color: rgba(255,255,255,.90);
}

p{ margin: 10px 0; }
ul, ol{ margin: 10px 0; padding-left: 18px; }
li{ margin: 6px 0; color: rgba(255,255,255,.86); }

.muted{ color: var(--muted); font-size: 12px; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.mini__title{
  font-weight: 700;
  margin-bottom: 6px;
}
.mini__body{
  color: rgba(255,255,255,.80);
  font-size: 14px;
}

.callout{
  border: 1px solid rgba(229,9,20,.22);
  border-radius: var(--radius2);
  background: rgba(229,9,20,.06);
  padding: 12px;
  margin: 12px 0;
}
.callout__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.table-wrap{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.20);
}
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.table--tight{
  min-width: 420px;
}
.table thead th{
  position: sticky;
  top: 0;
  background: rgba(17,17,24,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 12px;
  text-align: left;
  white-space: nowrap;
}
.table td{
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  vertical-align: top;
}
.table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.02);
}
.table tbody tr:hover td{
  background: rgba(229,9,20,.05);
}

mark{
  background: rgba(229,9,20,.22);
  color: rgba(255,255,255,.95);
  padding: 0 3px;
  border-radius: 6px;
}

.btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.btn:active{ transform: translateY(1px); }

.btn--solid{
  background: rgba(229,9,20,.92);
  border-color: rgba(229,9,20,.35);
}
.btn--solid:hover{
  background: rgba(229,9,20,.98);
}

.btn--ghost{
  background: transparent;
}
.btn--sm{
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.btn--icon{
  width: 40px;
  height: 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.footer{
  margin-top: 18px;
  padding: 10px 4px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17,17,24,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255,255,255,.88);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.toast.is-on{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 980px){
  .sidebar{ display:none; }
  .topbar__inner{ gap: 10px; }
  .brand{ min-width: auto; }
  .search{ max-width: none; }
  .grid2{ grid-template-columns: 1fr; }
  h1{ font-size: 28px; }
  .main{ padding: 16px 12px 30px; }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .toast{ transition: none; }
}
