:root{
  --bg0:#0d0a14;
  --bg1:#151021;
  --bg2:#1a1328;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);

  --stroke: rgba(201,166,255,.18);
  --stroke2: rgba(201,166,255,.10);

  --ink:#f5efff;
  --muted: rgba(245,239,255,.74);

  --lav:#d2b4ff;
  --lav2:#a66cff;
  --lav3:#6f2de2;

  --ok:#8df0c9;
  --warn:#ffd27f;
  --bad:#ff9ca8;

  --shadow: 0 20px 48px rgba(0,0,0,.48);
  --radius: 18px;

  --text: 16px;
  --leading: 1.72;
  --content-max: 76ch;

  --h1: clamp(26px, 3vw, 36px);
  --h2: clamp(19px, 2vw, 24px);
  --h3: clamp(16px, 1.6vw, 20px);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 540px at 15% -10%, rgba(166,108,255,.22), transparent 60%),
    radial-gradient(900px 540px at 110% 10%, rgba(111,45,226,.18), transparent 55%),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg0), #0b0812 60%, #09070f);
  background-size:
    auto,
    auto,
    44px 44px,
    44px 44px,
    auto;
  background-attachment: fixed;
}

body, p, li, a, code, pre, input, div, span{
  overflow-wrap:anywhere;
  word-break:break-word;
}

a{
  color: var(--lav);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.mn-wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.mn-header{
  padding: 20px 16px 12px;
}

.mn-brand{
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(135deg, rgba(210,180,255,.10), rgba(255,255,255,.025) 38%, rgba(111,45,226,.10)),
    rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.mn-brand::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-40%);
  opacity:.45;
  pointer-events:none;
}

.mn-brand-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.mn-brand-top{
  font-size:18px;
  font-weight:850;
  letter-spacing:.2px;
}

.mn-brand-sub{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
}

.mn-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.10);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  backdrop-filter: blur(10px);
}

.is-idle{
  color: var(--muted);
  background: rgba(255,255,255,.05);
}

.is-found{
  color: var(--ok);
  background: rgba(141,240,201,.10);
  border-color: rgba(141,240,201,.22);
}

.is-invalid{
  color: var(--bad);
  background: rgba(255,156,168,.10);
  border-color: rgba(255,156,168,.22);
}

.is-missing{
  color: var(--warn);
  background: rgba(255,210,127,.10);
  border-color: rgba(255,210,127,.22);
}

.mn-main{
  flex:1;
  padding: 8px 16px 30px;
}

.mn-card{
  max-width:1080px;
  margin:0 auto;
  padding:22px;
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.mn-titleblock{
  padding-bottom:16px;
  border-bottom:1px solid var(--stroke2);
}

.mn-title{
  margin:0;
  font-size: var(--h1);
  line-height:1.12;
  letter-spacing:.2px;
}

.mn-subtitle{
  margin:10px 0 0;
  color: rgba(245,239,255,.84);
  font-size:14px;
}

.mn-meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color: var(--muted);
  font-size:13px;
}

.mn-chip{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(201,166,255,.22);
  background: rgba(201,166,255,.09);
  color: rgba(245,239,255,.86);
}

.mn-content-area{
  margin-top:18px;
}

.mn-search{
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(201,166,255,.16);
  background: rgba(255,255,255,.035);
}

.mn-label{
  display:block;
  margin-bottom:10px;
  font-size:13px;
  font-weight:700;
  color: rgba(245,239,255,.86);
}

.mn-search-row{
  display:flex;
  gap:12px;
}

.mn-input{
  flex:1;
  min-width:0;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(201,166,255,.22);
  background: rgba(10,8,16,.72);
  color: var(--ink);
  padding:0 14px;
  font-size:15px;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mn-input::placeholder{
  color: rgba(245,239,255,.46);
}

.mn-input:focus{
  border-color: rgba(210,180,255,.55);
  box-shadow: 0 0 0 4px rgba(166,108,255,.14);
}

.mn-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  height:48px;
  padding:0 16px;
  border:1px solid rgba(201,166,255,.34);
  border-radius:14px;
  background: linear-gradient(180deg, rgba(210,180,255,.22), rgba(111,45,226,.18));
  color: rgba(245,239,255,.96);
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}

.mn-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(210,180,255,.52);
  filter: brightness(1.05);
}

.mn-mini{
  margin:10px 0 0;
  font-size:12px;
  color: var(--muted);
}

.mn-mini-tight{
  margin-top:4px;
}

.mn-panel{
  margin-top:16px;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(201,166,255,.18);
  background: rgba(255,255,255,.035);
}

.mn-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:8px;
}

.mn-panel-head h2{
  margin:0;
  font-size: var(--h2);
}

.mn-panel p{
  margin:0 0 10px;
  max-width: var(--content-max);
  line-height: var(--leading);
  color: rgba(245,239,255,.92);
}

.mn-panel-success{
  border-color: rgba(141,240,201,.20);
  background: linear-gradient(180deg, rgba(141,240,201,.06), rgba(255,255,255,.03));
}

.mn-panel-warning{
  border-color: rgba(255,210,127,.22);
  background: linear-gradient(180deg, rgba(255,210,127,.06), rgba(255,255,255,.03));
}

.mn-panel-alert{
  border-color: rgba(255,156,168,.22);
  background: linear-gradient(180deg, rgba(255,156,168,.06), rgba(255,255,255,.03));
}

.mn-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(141,240,201,.26);
  background: rgba(141,240,201,.10);
  color: var(--ok);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.mn-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}

.mn-kv{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(201,166,255,.16);
  background: rgba(255,255,255,.04);
}

.mn-k{
  margin-bottom:6px;
  font-size:12px;
  letter-spacing:.2px;
  color: rgba(245,239,255,.66);
}

.mn-v{
  font-size:14px;
  color: rgba(245,239,255,.94);
}

.mn-tagrow{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.mn-tag{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(201,166,255,.22);
  background: rgba(201,166,255,.10);
  color: rgba(245,239,255,.86);
  font-size:12px;
}

.mn-content{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--stroke2);
  max-width: var(--content-max);
}

.mn-content h3{
  margin:0 0 8px;
  font-size: var(--h3);
}

.mn-content p{
  margin:0 0 14px;
  line-height: var(--leading);
  color: rgba(245,239,255,.92);
}

.mn-codebox{
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(201,166,255,.20);
  background: rgba(0,0,0,.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:14px;
  color: rgba(245,239,255,.94);
}

.mn-footer{
  padding:16px;
}

.mn-footer-inner{
  max-width:1080px;
  margin:0 auto;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(201,166,255,.16);
  background: rgba(255,255,255,.04);
  color: rgba(245,239,255,.72);
  font-size:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:center;
}

.mn-fade-in{
  animation: mnFade .38s ease-out both;
}

@keyframes mnFade{
  from{
    opacity:0;
    transform: translateY(6px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

@media (max-width: 920px){
  .mn-grid{
    grid-template-columns:1fr;
  }

  .mn-card{
    padding:16px;
  }
}

@media (max-width: 700px){
  .mn-brand-row,
  .mn-panel-head,
  .mn-search-row{
    flex-direction:column;
  }

  .mn-btn{
    width:100%;
  }

  .mn-status-pill{
    width:fit-content;
  }
}

@media print{
  body{
    background:#fff;
    color:#000;
  }

  .mn-brand,
  .mn-card,
  .mn-footer-inner{
    box-shadow:none !important;
    backdrop-filter:none !important;
    background:#fff !important;
    border-color:#ddd !important;
  }

  a{
    color:#000;
    text-decoration:underline;
  }
}