:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #667085;
  --line: #e5eaf2;
  --primary: #1677ff;
  --primary-dark: #0f5fd4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e0f2fe 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}
.app { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.brand { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.user-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.user-box strong { color: var(--text); }
.hero-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 720px) {
  .hero-actions { grid-template-columns: 1fr; }
  .top { flex-direction: column; }
}
.card-btn {
  text-align: left; border: 1px solid var(--line); background: var(--card);
  border-radius: 14px; padding: 28px 24px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,119,255,.12); border-color: #bcd3ff; }
.card-btn.primary { background: linear-gradient(135deg, #1677ff, #3b9bff); color: #fff; border: none; }
.card-btn.primary .card-desc { color: rgba(255,255,255,.88); }
.card-title { display: block; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card-desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.view.hidden { display: none; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar h1 { font-size: 20px; margin: 0; }
.linkish {
  border: none; background: transparent; color: var(--primary); cursor: pointer; font-size: 14px; padding: 0;
}
.hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.filters label.grow { flex: 1 1 180px; }
.filters input {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; min-width: 120px;
}
.btn {
  align-self: end; border: none; background: var(--primary); color: #fff;
  border-radius: 8px; padding: 9px 16px; cursor: pointer; font-size: 14px;
}
.btn:hover { background: var(--primary-dark); }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.table-wrap {
  overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; white-space: nowrap; }
.file-list { display: grid; gap: 10px; margin-top: 16px; }
.file-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.file-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.empty { color: var(--muted); padding: 24px; text-align: center; }
