:root{
  --bg-top: #0b120e;
  --bg-bottom: #070b08;

  --panel: rgba(16,22,19,0.90);
  --panel2: rgba(16,22,19,0.70);

  --text: #e9efe9;
  --muted: #b8c4ba;

  --line: rgba(233,239,233,0.12);

  --accent: #38b26b;
  --accentLink: #6fd39a;

  --danger: #ff4d4d;
  --warn: #f7c948;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html, body{ min-height: 100vh; }

body{
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);

  /* smooth, non-banding forest background */
  background:
    radial-gradient(1200px 800px at 20% 15%,
      rgba(28, 75, 48, 0.55),
      rgba(10, 16, 12, 0.85) 60%
    ),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

/* ===== Header ===== */
.header{
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo{
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand-title{
  font-size: 22px;
  font-weight: 800;
}

.brand-subtitle{
  font-size: 13px;
  color: var(--muted);
}

/* ===== Status ===== */
.status{
  text-align: right;
  min-width: 240px;
}

.status-label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.status-msg{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.status-chip{
  display: inline-block;
  padding: 7px 11px;            /* slightly bigger */
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(233,239,233,0.06);
}

.status-chip--ok{
  color: var(--accent);
  border-color: rgba(56,178,107,0.6);
  background: rgba(56,178,107,0.15);
}

.status-chip--bad{
  color: var(--danger);
  border-color: rgba(255,77,77,0.6);
  background: rgba(255,77,77,0.12);
}

.status-chip--warn{
  color: var(--warn);
  border-color: rgba(247,201,72,0.6);
  background: rgba(247,201,72,0.12);
}

.status-chip--neutral{
  color: var(--text);
}

/* ===== Card ===== */
.card{
  margin-top: 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.h1{
  margin: 0 0 10px 0;
  font-size: 21px;
}

.lead{
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.note{
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.5;
}

code{
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(233,239,233,0.06);
}

/* ===== Form ===== */
.form{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(233,239,233,0.03);
}

.label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.file{
  flex: 1;
  min-width: 260px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11,15,12,0.65);
  color: var(--text);
}

.btn{
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid rgba(56,178,107,0.45);
  background: rgba(56,178,107,0.12);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.btn:hover{ background: rgba(56,178,107,0.18); }

/* ===== Result ===== */
.result-wrap{ margin-top: 14px; }

.result-title{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.result{
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(233,239,233,0.16);
  background: rgba(8,11,9,0.72);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result--neutral{ border-color: rgba(247,201,72,0.35); }
.result--ok{
  border-color: rgba(56,178,107,0.35);
  box-shadow: 0 0 0 1px rgba(56,178,107,0.10) inset;
}
.result--bad{
  border-color: rgba(255,77,77,0.35);
  box-shadow: 0 0 0 1px rgba(255,77,77,0.10) inset;
}
.result--warn{
  border-color: rgba(247,201,72,0.35);
  box-shadow: 0 0 0 1px rgba(247,201,72,0.10) inset;
}

/* ===== Footer ===== */
.footer{
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.links{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.scope{
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.95;
  border-top: 1px solid rgba(233,239,233,0.10);
  padding-top: 10px;
  margin-top: 2px;
}

a{
  color: var(--accentLink);
  text-decoration: none;
  font-weight: 700;
}
a:hover{
  color: #8ae6b0;
  text-decoration: underline;
}

.muted{ color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 720px){
  .header{ flex-direction: column; align-items: flex-start; }
  .status{ text-align: left; min-width: unset; }
}
