* {
  box-sizing: border-box;
}

body.app-page {
  margin: 0;
  min-height: 100vh;
  background: #101216;
  color: #f4f7fb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.panel {
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.panel.narrow {
  max-width: 460px;
}

.panel.wide {
  width: 100%;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

p {
  line-height: 1.5;
}

.muted {
  display: block;
  color: #aab4c2;
  font-size: 14px;
}

.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #2a303d;
  color: #f4f7fb;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.button.primary {
  background: #6441a5;
}

.button.danger {
  background: #69303b;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #aab4c2;
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #10141b;
  color: #f4f7fb;
  padding: 0 12px;
  font: inherit;
}

.notice {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(100, 65, 165, 0.18);
}

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

.table {
  display: grid;
  gap: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #111620;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions form {
  margin: 0;
}

@media (max-width: 840px) {
  .topline,
  .user-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
