:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1a1d29;
  --text-sub: #6b7280;
  --primary: #6366f1;
  --border: #e5e7eb;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 16px;
}

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

.header h1 { font-size: 24px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.card h3 { font-size: 14px; font-weight: 600; }

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.primary-btn:disabled { opacity: 0.6; }

.text-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 14px;
  font-family: inherit;
  padding: 8px;
  cursor: pointer;
}

.empty {
  color: var(--text-sub);
  text-align: center;
  padding: 32px 0;
}

[hidden] { display: none !important; }

.form { display: flex; flex-direction: column; gap: 10px; }

.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-sub); }

.form label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }

.form input:not([type="checkbox"]), .form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}

.form-error { color: #ef4444; font-size: 13px; }

.nav { display: flex; gap: 8px; margin-bottom: 16px; }

.nav a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text-sub);
  font-size: 14px;
  text-decoration: none;
}

.nav a[aria-current="page"] { background: var(--primary); color: white; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  margin-bottom: 8px;
}

.row-title { font-weight: 600; }

.row-sub { color: var(--text-sub); font-size: 13px; }
