:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #222;
  --muted: #667085;
  --primary: #1a73e8;
  --accent: #e6f0ff;            /* halványkék mezőhátterekhez */
  --ring: #b3d4ff;              /* fókusz gyűrű */
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --maxw: 940px;                /* háttérlap szélesség, hogy semmi ne lógjon ki */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.page{
  max-width: var(--maxw);
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  gap: 16px;
}

.card{
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 22px;
}

.card h1{
  margin: 0 0 6px;
  font-size: 1.6rem;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
}

form .row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* Név hosszabb, E-mail kissé rövidebb – nagyobb nézetben */
@media (min-width: 720px){
  form .row-2{
    grid-template-columns: minmax(360px, 1fr) minmax(280px, 420px);
    align-items: start;
  }
}

.field{ display: grid; gap: 6px; }
.field label{ font-weight: 600; }
.hint{ color: var(--muted); font-size: .9rem; }

input[type="text"],
input[type="email"],
textarea{
  width: 100%;
  border: 1px solid #d9e3f7;
  background: var(--accent);           /* halványkék mezők */
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea{ resize: vertical; }

input:focus, textarea:focus{
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 40%, transparent);
  background: #f0f6ff;                 /* kicsit világosabb fókuszban */
}

.row-actions{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 6px;
}

.agree{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  user-select: none;
}
.agree a{ color: var(--primary); text-decoration: none; }
.agree a:hover{ text-decoration: underline; }

.actions{ display: flex; gap: 10px; }

button{
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26,115,232,.24);
  transition: transform .05s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
button:hover{ box-shadow: 0 8px 18px rgba(26,115,232,.28); }
button:active{ transform: translateY(1px); }
button:disabled{ opacity: .6; cursor: not-allowed; }

button.ghost{
  background: #eef4ff;
  color: #2457b1;
  box-shadow: none;
  border: 1px solid #d9e3f7;
}

.form-msg{
  margin-top: 8px;
  font-weight: 600;
}
.form-msg.ok{ color: #1e7a3a; }
.form-msg.err{ color: #b3261e; }

/* Üzenetlista kártya */
.card-list .list-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.msg-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.msg-list li.empty{
  color: var(--muted);
  font-style: italic;
}

.item{
  border: 1px solid #e6ecff;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
}
.item header{
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.item header .muted{ color: var(--muted); font-size: .92rem; }
.item .subject{ margin-top: 4px; font-weight: 600; }
.item .body{ margin: 6px 0 0; white-space: pre-wrap; }
