:root {
  --ink: #0f1a1f;
  --muted: #51606b;
  --accent: #1f7a5b;
  --accent-soft: #d3f2e6;
  --surface: #ffffff;
  --surface-ghost: rgba(255, 255, 255, 0.75);
  --line: rgba(15, 26, 31, 0.12);
  --danger: #c43d3d;
  --shadow: 0 12px 40px rgba(15, 26, 31, 0.15);
  --radius: 16px;
  --font-body: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-title: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #f0f9f6 0%, #e2f0f5 35%, #f5efe6 100%);
  min-height: 100vh;
}

.bg-orbit {
  position: fixed;
  inset: -20% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 122, 91, 0.25), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px 24px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.brand-mark {
  width: 18px;
  height: 44px;
  background: linear-gradient(160deg, var(--accent), #0c4d3b);
  border-radius: 8px;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.userbar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.main {
  display: flex;
  justify-content: center;
}

.panel {
  width: min(1200px, 100%);
  background: var(--surface-ghost);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(6px);
  animation: fadeUp 0.6s ease-out;
}

.panel h1,
.panel h2 {
  font-family: var(--font-title);
  margin: 0 0 18px 0;
}

.panel-body {
  margin-top: 16px;
}

.tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(31, 122, 91, 0.35);
}

.alert {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff2f2;
  color: #7c1d1d;
  border: 1px solid rgba(196, 61, 61, 0.3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

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

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-body);
}

textarea {
  resize: vertical;
}

.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 26, 31, 0.15);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.message {
  margin-top: 10px;
  color: var(--danger);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.table th {
  color: var(--muted);
  font-weight: 600;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

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

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .panel {
    padding: 20px;
  }

  .table th,
  .table td {
    font-size: 12px;
  }
}
