:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #f43f5e;
  --accent-strong: #e11d48;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

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

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 16px rgba(244, 63, 94, 0.25);
}

.brand h1 {
  font-size: 16px;
  margin: 0;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.header-status {
  font-size: 13px;
  color: var(--muted);
}

main {
  max-width: 1200px;
  margin: 32px auto 80px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

input[type="text"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  min-width: 220px;
  font-size: 13px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

button.secondary {
  background: #e2e8f0;
  color: #334155;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #be123c;
  font-weight: 600;
  font-size: 11px;
}

.empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: #fff5f7;
  color: #881337;
  border-radius: 12px;
}

.hidden {
  display: none;
}

.link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
}
