:root {
  --bg: #f4efe7;
  --bg-2: #eee6da;
  --card: rgba(255, 255, 255, 0.84);
  --panel: rgba(255, 255, 255, 0.94);
  --text: #1f1a17;
  --muted: #6c6258;
  --line: rgba(31, 26, 23, 0.12);
  --accent: #0f5b66;
  --accent-2: #d86b21;
  --good: #0f7a45;
  --warning: #9a5a00;
  --shadow: 0 22px 60px rgba(23, 19, 14, 0.11);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 91, 102, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(216, 107, 33, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #123d77);
  color: #fff;
  letter-spacing: 0.06em;
}

.brand-text { font-size: 1rem; }
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-weight: 600; }
.icon-nav { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #123d77); color: #fff; box-shadow: 0 10px 18px rgba(15, 91, 102, 0.16); }
.icon-nav:hover { text-decoration: none; transform: translateY(-1px); }
.icon-nav i { font-size: 1.1rem; line-height: 1; color: #fff; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(15, 91, 102, 0.1);
  color: var(--accent);
  font-weight: 700;
}
.user-chip:hover { text-decoration: none; }

.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 91, 102, 0.1);
  border: 1px solid rgba(15, 91, 102, 0.18);
}

.page { display: grid; gap: 18px; }
.hero, .public-hero, .dashboard-grid, .two-col, .profile-grid {
  display: grid;
  gap: 18px;
}

.hero, .public-hero { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.dashboard-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .hero-copy, .hero-card, .section-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy, .hero-card, .section-card, .card { padding: 24px; }

.narrow { width: min(760px, 100%); margin: 0 auto; }
.center { text-align: center; }

h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 { margin: 0 0 12px; font-size: 1.4rem; line-height: 1.25; }
h3 { margin: 0 0 6px; font-size: 1.08rem; }
p { margin: 0 0 12px; line-height: 1.85; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
}

.lead { color: var(--muted); font-size: 1.02rem; }

.hero-actions, .section-actions, .list-actions, .launch-actions, .qr-actions, .chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--accent), #0d4851); color: #fff; border-color: transparent; }
.button.secondary { background: rgba(255, 255, 255, 0.82); }
.button.ghost { background: transparent; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat, .panel, .timeline-item, .list-card, .social-link, .empty, .notice, .sync-banner, .draft-banner {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.stat { padding: 16px; text-align: center; }
.stat strong { display: block; font-size: 1.2rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }
.panel { padding: 18px; }
.panel ul, .plain-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.step-accordion {
  display: grid;
  gap: 10px;
}

.step-accordion details {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.step-accordion summary {
  cursor: pointer;
  font-weight: 800;
}

.step-accordion p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.dashboard-top {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 8px; font-weight: 600; }
.form-block { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(31, 26, 23, 0.08); }
.link-row { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(31, 26, 23, 0.08); }
.form input, .form textarea, .form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
}
.form textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.checkbox input { width: auto; min-height: auto; }
.location-option { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.72); }
.location-option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; }
.form .switch-control { display: inline-flex; width: 54px; height: 30px; position: relative; flex: 0 0 54px; }
.form .switch-control input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #b7b0a7; transition: background 0.18s ease; cursor: pointer; }
.switch-slider::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(31, 26, 23, 0.24); transition: transform 0.18s ease; }
.switch-control input:checked + .switch-slider { background: var(--accent); }
.switch-control input:checked + .switch-slider::after { transform: translateX(24px); }
.switch-control input:disabled + .switch-slider { opacity: 0.45; cursor: not-allowed; }
.location-hint { margin: 0; font-size: 0.88rem; line-height: 1.5; }

.launch-headline {
  display: grid;
  gap: 8px;
}

.launch-section {
  margin-bottom: 18px;
}
.launch-card { display: grid; gap: 12px; }
.launch-card .form {
  gap: 10px;
}
.launch-card textarea {
  min-height: 86px;
}
.help-accordion {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.help-accordion summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.help-accordion p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.publish-steps {
  display: grid;
  gap: 12px;
  padding: 2px 0 8px;
}
.publish-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 26, 23, 0.08);
}
.publish-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 91, 102, 0.12);
  color: var(--accent);
  font-weight: 800;
}
.publish-step strong { display: block; margin-bottom: 2px; }
.publish-step p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.publish-step.active {
  background: linear-gradient(135deg, rgba(15, 91, 102, 0.12), rgba(255, 255, 255, 0.9));
  border-color: rgba(15, 91, 102, 0.24);
}
.upload-field {
  border: 1px dashed rgba(15, 91, 102, 0.3);
  background: rgba(15, 91, 102, 0.05);
}
.upload-field input { padding: 10px 0; }
.upload-note, .hint, .muted { color: var(--muted); font-size: 0.92rem; }
.optional { color: var(--muted); font-weight: 500; font-size: 0.9rem; }

.avatar-upload-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.avatar-preview {
  width: 112px;
  height: 112px;
  max-width: 112px;
  max-height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 10px 20px rgba(31, 26, 23, 0.12);
}

.avatar-mini {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 16px rgba(31, 26, 23, 0.12);
}

.account-summary {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.list-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.profile-list-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-row {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 26, 23, 0.08);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.event-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 91, 102, 0.18);
  box-shadow: 0 14px 28px rgba(31, 26, 23, 0.08);
}

.event-row-main {
  display: grid;
  gap: 6px;
}

.event-row-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.event-row-meta strong {
  font-size: 1rem;
}

.event-row-meta time {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.pagination-state {
  color: var(--muted);
  font-size: 0.94rem;
}

.button.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.list-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}
.status-pill.public { background: rgba(15, 122, 69, 0.12); color: var(--good); }
.status-pill.private { background: rgba(154, 90, 0, 0.12); color: var(--warning); }
.status-pill.pending { background: rgba(216, 107, 33, 0.12); color: var(--accent-2); }

.social-list { display: grid; gap: 12px; }
.social-link {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  color: var(--text);
}

.launch-actions .button {
  flex: 1 1 180px;
}
.social-link strong { font-size: 1rem; }

.timeline { display: grid; gap: 12px; }
.timeline-item { padding: 14px 16px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-grid img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70svh, 720px);
  object-fit: contain;
  border-radius: 18px;
  display: block;
  margin-inline: auto;
  background: rgba(31, 26, 23, 0.04);
}

.qr-page {
  width: min(860px, 100%);
  margin: 0 auto;
}

.qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.qr-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
}
.qr-copy {
  display: grid;
  gap: 4px;
}
.qr-copy p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.55;
}
.qr-frame {
  position: relative;
  width: fit-content;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.qr-code-image {
  display: block;
  width: 220px;
  height: 220px;
  max-width: min(70vw, 220px);
}

.qr-center-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(31, 26, 23, 0.2);
}
.qr-url {
  display: grid;
  gap: 8px;
  color: var(--muted);
  word-break: break-all;
}
.qr-actions { justify-content: center; }

.guest-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(216, 107, 33, 0.1);
  color: var(--accent-2);
  font-weight: 800;
}

.guest-card {
  display: grid;
  gap: 12px;
}

.guest-footer {
  display: flex;
  justify-content: center;
  margin: 14px 0 4px;
}

.guest-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.guest-app-link:hover {
  text-decoration: none;
}

.guest-app-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #123d77);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.pwa-install-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pwa-install-card p {
  margin: 0;
  line-height: 1.5;
}

.pwa-install-card [hidden] {
  display: none !important;
}

.hero-profile {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.guest-event-page {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.guest-welcome {
  padding: 8px 4px 0;
}

.guest-welcome h1,
.guest-card > h2,
.guest-card > h3,
.guest-profile-copy h3 {
  margin-top: 0;
}

.guest-event-card,
.guest-profile-card,
.guest-message-section {
  display: grid;
  gap: 18px;
}

.guest-profile-copy {
  min-width: 0;
}

.guest-profile-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.guest-profile-copy .lead {
  margin-bottom: 10px;
}

.guest-profile-links {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guest-profile-links h3 {
  margin: 0;
}

.guest-message-section .guest-message-box {
  margin-top: 0;
}

.guest-map-block {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guest-map-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(31, 26, 23, 0.04);
  aspect-ratio: 16 / 9;
}

.guest-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.guest-sent-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.guest-sent-message {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.guest-sent-message time {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-avatar {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.hero-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(216, 107, 33, 0.18), rgba(31, 26, 23, 0.08));
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-avatar-fallback span {
  transform: translateY(1px);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-browser-link {
  border-style: dashed;
}

.message-box {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.95));
  border: 1px solid rgba(216, 107, 33, 0.16);
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guest-message-box {
  margin-top: 6px;
}

.guest-message-form {
  gap: 10px;
}

.guest-message-form textarea {
  min-height: 84px;
}

.empty {
  padding: 18px;
  color: var(--muted);
}

.notice, .sync-banner, .draft-banner {
  padding: 12px 14px;
}

.sync-banner { background: rgba(15, 122, 69, 0.08); border-color: rgba(15, 122, 69, 0.16); }
.draft-banner { background: rgba(216, 107, 33, 0.09); border-color: rgba(216, 107, 33, 0.15); }

.offline-state {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.prep-screen {
  display: grid;
  place-items: center;
  min-height: 58vh;
}

.prep-card {
  width: min(560px, 100%);
  padding: 30px;
  text-align: center;
}

.small-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .hero, .public-hero, .dashboard-grid, .dashboard-top, .guest-hero, .two-col, .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-avatar {
    width: 112px;
  }

  .stats { grid-template-columns: 1fr; }
  .list-card { grid-template-columns: 1fr; }
  .profile-list-card { grid-template-columns: auto minmax(0, 1fr); }
  .list-meta { justify-items: start; }
  .photo-grid { grid-template-columns: 1fr; }
  .small-grid { grid-template-columns: 1fr; }
  .account-summary { grid-template-columns: 1fr; }
  .shell {
    width: min(100vw - 16px, 1120px);
    padding-top: 8px;
  }
  .topbar {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 18px;
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 0.82rem;
  }
  .brand-text {
    display: none;
  }
  .nav {
    gap: 10px;
    font-size: 0.9rem;
  }
  .user-chip {
    padding: 7px 10px;
    font-size: 0.86rem;
  }
  .hero-copy, .hero-card, .section-card, .card {
    padding: 14px;
    border-radius: 20px;
  }
  .launch-card {
    gap: 8px;
  }
  .launch-card .form,
  .form {
    gap: 8px;
  }
  .launch-card textarea {
    min-height: 66px;
    max-height: 82px;
  }
  .upload-note,
  .draft-banner {
    display: none;
  }
  .launch-actions {
    flex-direction: row;
    gap: 8px;
  }
  .launch-actions .button {
    flex: 1;
    min-height: 42px;
    padding: 0 10px;
  }
  input, select, textarea {
    padding: 10px 12px;
    border-radius: 14px;
  }
  label {
    gap: 5px;
    font-size: 0.92rem;
  }
  .qr-card {
    gap: 7px;
  }
  .qr-card h1 {
    font-size: 1.55rem;
  }
  .qr-frame {
    padding: 8px;
    border-radius: 16px;
  }
  .qr-code-image {
    width: 180px;
    height: 180px;
    max-width: 66vw;
  }
  .qr-center-avatar {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }
  .qr-copy p {
    font-size: 0.88rem;
    line-height: 1.4;
  }
}


.contact-editor-head, .contact-picker-head, .contact-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.contact-editor-head .button { flex: 0 0 auto; white-space: nowrap; }
.contact-fields { display: grid; gap: 12px; }
.contact-field { display: grid; gap: 8px; }
.contact-field-title { margin-bottom: 0; font-weight: 700; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.icon-button.danger { color: #b42318; }
.contact-picker {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
}
.contact-picker[hidden] { display: none; }
.contact-picker-panel {
  width: min(720px, 100%);
  max-height: min(80svh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.contact-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.contact-service-button, .contact-icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.contact-service-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 10px;
  border-radius: 14px;
  font-weight: 700;
}
.contact-service-button.selected { opacity: 0.48; }
.contact-service-button.pending { outline: 3px solid rgba(15, 91, 102, 0.32); background: rgba(15, 91, 102, 0.06); }
.contact-picker-actions { display: grid; margin-top: 14px; }
.contact-service-button img, .contact-icon-button img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.social-list {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
}
.contact-icon-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 10px;
  border-radius: 14px;
  font-weight: 700;
}
.contact-action-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.32);
}
.contact-action-overlay[hidden] { display: none; }
.contact-action-panel {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.contact-action-panel h3 { margin: 0; }
@media (max-width: 640px) {
  .contact-field { grid-template-columns: 1fr; }
}
