:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --border:#dfe5ee;
  --muted:#667085;
  --text:#0f172a;
  --soft:#f4f6f9;
  --mark:#fff2a8;
  --primary:#1f4e96;
  --primary-dark:#163b72;
  --title:#10254d;
  --shadow:0 8px 28px rgba(15, 23, 42, 0.05);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.top{
  background:linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-bottom:1px solid var(--border);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px 20px;
}

.hero{
  display:flex;
  align-items:center;
  gap:20px;
}

.hero-logo{
  width:92px;
  height:auto;
  display:block;
  flex-shrink:0;
}

.hero-text h1{
  margin:0;
  font-size:2.1rem;
  line-height:1.06;
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--title);
}

.subtitle{
  margin:7px 0 0 0;
  font-size:1.15rem;
  line-height:1.2;
  font-weight:700;
  color:var(--primary);
}

.desc{
  margin:8px 0 0 0;
  font-size:0.98rem;
  color:var(--muted);
}

.status{
  display:inline-block;
  margin-top:14px;
  padding:8px 16px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  font-size:0.95rem;
}

.main-area{
  padding-top:26px;
}

.card{
  margin-top:18px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px;
  box-shadow:var(--shadow);
}

.search-card{
  margin-top:0;
}

.lbl{
  display:block;
  font-size:1rem;
  font-weight:700;
  margin-bottom:12px;
}

.row{
  display:grid;
  grid-template-columns:1fr 190px 120px;
  gap:12px;
  align-items:center;
}

input,
select,
button{
  width:100%;
  min-height:48px;
  border:1px solid #cfd8e3;
  border-radius:16px;
  padding:12px 14px;
  font-size:1rem;
  background:#fff;
  color:var(--text);
}

input::placeholder{
  color:#8b95a7;
}

input:focus,
select:focus,
button:focus{
  outline:none;
  border-color:#9fb7da;
  box-shadow:0 0 0 3px rgba(31, 78, 150, 0.08);
}

button{
  background:var(--primary);
  color:#ffffff;
  border:1px solid var(--primary);
  cursor:pointer;
  font-weight:700;
  transition:all 0.2s ease;
}

button:hover{
  background:var(--primary-dark);
  border-color:var(--primary-dark);
  color:#ffffff;
}

button:disabled{
  opacity:0.7;
  cursor:not-allowed;
}

.hint{
  margin-top:13px;
  color:var(--muted);
  font-size:0.95rem;
}

.meta{
  color:var(--muted);
  font-size:1rem;
}

.results{
  margin-top:12px;
}

.filehead{
  margin:16px 0 8px 0;
  font-size:1rem;
  color:var(--text);
}

.pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:var(--soft);
  border:1px solid var(--border);
  color:var(--muted);
  margin-right:8px;
  font-size:0.92rem;
}

.item{
  border:1px solid var(--border);
  border-radius:18px;
  padding:15px;
  margin-bottom:12px;
  background:#ffffff;
  cursor:pointer;
  transition:all 0.2s ease;
}

.item:hover{
  border-color:#c2d1e3;
  box-shadow:0 4px 18px rgba(15, 23, 42, 0.06);
}

.page{
  font-size:0.94rem;
  color:var(--muted);
  margin-bottom:8px;
}

.snip{
  font-size:1rem;
  line-height:1.55;
}

.snip mark{
  background:var(--mark);
  padding:0 3px;
  border-radius:4px;
}

.foot{
  margin-top:14px;
  color:var(--muted);
}

@media (max-width: 820px){
  .hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .hero-logo{
    width:78px;
  }

  .hero-text h1{
    font-size:1.75rem;
  }

  .subtitle{
    font-size:1rem;
  }

  .row{
    grid-template-columns:1fr;
  }
}