:root { color-scheme: light dark; --bg: #fff; --fg: #1d2330; --muted: #5b6475; --accent: #2d6cdf; --accent-2: #1fa15a; --line: #d9dee8; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151c; --fg: #e8ecf3; --muted: #9aa3b5; --line: #2a3140; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }

.nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: var(--accent); }
.nav-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

h1 { font-size: 1.5rem; margin: 16px 0 8px; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 20px; }
label { font-weight: 600; }

button, .btn, input[type="submit"] {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.btn-done { background: var(--accent-2); }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; display: flex; align-items: center; }
.list li.muted, td.muted { color: var(--muted); }

.card-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  background: transparent;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
img, table { max-width: 100%; }

@media (max-width: 480px) {
  table, thead, tbody, tr { display: block; width: 100%; }
  th { display: none; }
  tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
  td { display: flex; justify-content: space-between; gap: 8px; border-bottom: none; padding: 6px 8px; }
  td:not(:last-child)::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}
