:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --text: #17211b;
  --muted: #5d6861;
  --line: #d8ddd6;
  --accent: #136f63;
  --accent-hover: #0f5b51;
  --error: #a93226;
  --success: #176d37;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(19, 111, 99, 0.09), transparent 42%),
    var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.form-panel {
  width: min(100%, 520px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(18, 30, 24, 0.12);
  padding: clamp(22px, 5vw, 40px);
}

.heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.list-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.list-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.list-link[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

label span {
  font-size: 0.95rem;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: #fbfcfb;
}

input:focus {
  outline: 3px solid rgba(19, 111, 99, 0.18);
  border-color: var(--accent);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.link-button {
  min-height: 38px;
  padding: 0;
  background: transparent;
  color: var(--accent);
}

.link-button:hover {
  background: transparent;
  color: var(--accent-hover);
  text-decoration: underline;
}

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

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--error);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 15, 0.5);
}

.modal-panel {
  position: relative;
  width: min(100%, 480px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(12, 18, 15, 0.24);
  padding: 24px;
}

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

.modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.icon-button {
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--text);
  line-height: 1;
}

.icon-button:hover {
  background: #eef2ef;
}
