:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --primary: #16a34a;
  --primary-soft: #15803d;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --danger: #b91c1c;
  --success: #16a34a;
  --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
  --header-bg: #ffffff;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

header {
  background: #ffffff !important;
  color: #111827 !important;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
}

header h1 .logo-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.56rem 1.05rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: 0.15s;
}

button.primary,
button.secondary,
button.ghost,
button.danger {
  background: #bae6fd;
  color: #000000;
  border: 1px solid #7dd3fc;
}

button.primary:hover,
button.secondary:hover,
button.ghost:hover,
button.danger:hover {
  background: #7dd3fc;
}

button.small {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

h2 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
}

h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: inline-block;
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='file'],
input[type='color'],
textarea,
select {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 0.95rem;
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 960px) {
  body {
    font-size: 20px;
  }

  button {
    padding: 0.78rem 1.34rem;
    font-size: 1.14rem;
  }

  button.small {
    padding: 0.64rem 1.06rem;
    font-size: 1.04rem;
  }

  h2 {
    font-size: 1.44rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  label {
    font-size: 1.1rem;
  }

  input[type='text'],
  input[type='password'],
  input[type='number'],
  input[type='file'],
  input[type='color'],
  textarea,
  select {
    font-size: 1.22rem;
    padding: 0.74rem 0.82rem;
  }

  .card {
    border-radius: 0.9rem;
  }

  .card,
  .page,
  .app {
    font-size: 1.18rem;
  }

  .card p,
  .card li,
  .card span,
  .card .muted {
    font-size: 1.14rem;
    line-height: 1.45;
  }

  .row {
    flex-wrap: wrap;
  }

  .row button {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
