:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #171a1f;
  --muted: #606875;
  --line: #d9dee7;
  --accent: #1d4ed8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: var(--accent); text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

nav { display: flex; gap: 16px; align-items: center; }

.page { max-width: 1180px; margin: 0 auto; padding: 40px 24px; }
.narrow { max-width: 440px; margin: 80px auto; }
.stack { display: grid; gap: 24px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.panel, .app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.15; }
h2 { margin: 0 0 14px; font-size: 20px; }
p { color: var(--muted); line-height: 1.5; }

button, .button, input, select {
  min-height: 38px;
  border-radius: 6px;
  font: inherit;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 8px 13px;
  cursor: pointer;
}

input, select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 10px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 700; }

@media (max-width: 800px) {
  .columns { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .page { padding: 28px 16px; }
}
