* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  color: #0f172a;
  line-height: 1.6;
  min-height: 100vh;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.logo {
  margin: 0;
  color: #2563eb;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.profile-menu {
  position: relative;
}

.profile-button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  list-style: none;
  min-width: 220px;
  display: none;
  padding: 8px;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 650;
}

.profile-dropdown a:hover {
  background: rgba(37, 99, 235, 0.08);
}

.wrap {
  width: min(900px, 94%);
  margin: 96px auto 40px;
  display: grid;
  gap: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.card.subtle {
  background: #f8fafc;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.3px;
}

.subtitle {
  margin-top: 6px;
  color: #475569;
}

.form {
  margin-top: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

label {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}

textarea {
  resize: vertical;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  background: #fff;
}

.status {
  margin-top: 12px;
  font-weight: 700;
  color: #0f172a;
}

.status.ok {
  color: #065f46;
}

.status.err {
  color: #991b1b;
}
