:root {
  --accent: #b25c7a;
  --ink: #2b2b2b;
  --muted: #7a7a7a;
  --line: #e7e4df;
  --bg: #faf8f5;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.serif { font-family: Georgia, "Times New Roman", serif; }

.wrap { max-width: 620px; margin: 0 auto; padding: 32px 20px 64px; }
.wrap-wide { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }

a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

/* Guest header band */
.band {
  text-align: center;
  padding: 30px 20px 26px;
  border-radius: var(--radius) var(--radius) 0 0;
  color: #fff;
}
.band .kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.9; }
.band .names { font-size: 30px; margin: 6px 0 2px; font-weight: 600; }
.band .date { font-size: 14px; opacity: 0.92; }

label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }

input[type="text"], input[type="date"], textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.file-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px dashed #cfc9c1; border-radius: 8px;
  padding: 12px; font-size: 14px; color: var(--muted);
  margin-top: 6px; cursor: pointer;
}

.btn {
  display: inline-block; text-align: center; cursor: pointer;
  padding: 12px 18px; border-radius: 8px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; margin-top: 20px; }
.btn-sm { padding: 7px 12px; font-size: 13px; font-weight: 500; }

.hp { position: absolute; left: -9999px; }

.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-title { font-size: 22px; font-weight: 600; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 600; }
.stat .l { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(3,1fr); } }

.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.msg.hidden { opacity: 0.5; }
.msg .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.msg .name { font-weight: 600; font-size: 15px; }
.msg .body { font-size: 14px; color: #444; margin-top: 4px; }
.msg img { max-width: 140px; border-radius: 8px; margin-top: 10px; display: block; }
.actions form { display: inline; }
.actions .btn-sm { margin-left: 6px; }

.qr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; background: #fff; }
.qr-card img { width: 100%; max-width: 180px; border-radius: 8px; }
.link-box { font-size: 12px; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 10px; color: var(--muted); }
