:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #171a1f;
  --muted: #626a75;
  --line: #d9dee7;
  --accent: #126b5b;
  --accent-dark: #0d5347;
  --danger: #a52828;
  --success: #176a3a;
}

* {
  box-sizing: border-box;
}

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

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

.topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
  margin-bottom: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.login-panel {
  width: min(380px, 100%);
  margin: 18vh auto 0;
}

h1 {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 18px;
}

.settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
}

span {
  font-size: 14px;
  font-weight: 700;
}

small {
  color: var(--muted);
  font-size: 12px;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(18, 107, 91, 0.18);
  border-color: var(--accent);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.settings-form button {
  width: max-content;
}

.ghost {
  background: #e7ecef;
  color: var(--text);
}

.ghost:hover {
  background: #dce4e8;
}

.error,
.success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.error {
  background: #fff0f0;
  color: var(--danger);
}

.success {
  margin-bottom: 18px;
  background: #edf8f1;
  color: var(--success);
}

@media (max-width: 720px) {
  .settings-form {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }
}

