:root {
  --bg: #faf7f3;
  --surface: #ffffff;
  --surface-alt: #f4eee6;
  --text: #3a3531;
  --text-muted: #8a8079;
  --line: #e8e0d6;
  --accent: #8a6d50;
  --accent-soft: #f1e8de;
  --sage: #7f9076;
  --sage-soft: #e9eee5;
  --blush: #c98f86;
  --blush-soft: #f7e7e3;
  --danger: #b5544a;
  --warn: #c08a2e;
  --groom: #6f8aa6;
  --bride: #c98f86;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(58, 53, 49, 0.06), 0 4px 16px rgba(58, 53, 49, 0.05);
  --font: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-script: "Pinyon Script", cursive;
  --font-en: "Cormorant Garamond", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.4;
}

.icon {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.muted {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Layout ---------- */
#app {
  min-height: 100vh;
}

body:not(.is-login):not(.is-print) #app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 12px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  padding: 0 12px 24px;
  text-decoration: none;
  color: var(--text);
}

.brand-script {
  display: block;
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1.3;
  color: var(--accent);
}

.brand-sub {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--surface-alt);
}

.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.nav-logout {
  justify-content: flex-start;
}

.main {
  padding: 32px 40px 80px;
  min-width: 0;
}

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

.page-head h1 {
  margin: 0;
  font-size: 26px;
}

.page-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toolbar .grow {
  flex: 1;
}

@media (max-width: 860px) {
  body:not(.is-login):not(.is-print) #app {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    height: auto;
    flex-direction: row;
    padding: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sidebar .brand,
  .sidebar .nav-logout {
    display: none;
  }

  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
  }

  .nav-item {
    flex: 1 0 64px;
    flex-direction: column;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 0;
    font-size: 10.5px;
    text-align: center;
  }

  .main {
    padding: 20px 16px 120px;
  }

  .page-head h1 {
    font-size: 22px;
  }
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  border-color: var(--accent);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.is-primary:hover {
  background: #765b41;
}

.btn.is-danger {
  color: var(--danger);
}

.btn.is-danger:hover {
  border-color: var(--danger);
}

.btn.is-ghost {
  border-color: transparent;
  background: transparent;
}

.btn.is-small {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12.5px;
}

.btn.is-block {
  width: 100%;
}

.btn.is-left {
  margin-right: auto;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(138, 109, 80, 0.25);
  border-color: var(--accent);
}

input[type="checkbox"] {
  width: 18px;
  min-height: 0;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.toolbar input,
.toolbar select {
  width: auto;
}

.search {
  position: relative;
  min-width: 200px;
}

.search .icon {
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--text-muted);
}

.search input {
  width: 100%;
  padding-left: 34px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.field small {
  color: var(--text-muted);
  font-size: 12px;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field.is-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards ---------- */
.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 17px;
}

.card h2 .icon {
  color: var(--accent);
}

.card-link {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12.5px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.stat-value small {
  margin-left: 2px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
}

.stat.is-accent {
  background: var(--accent-soft);
  border-color: transparent;
}

/* ---------- Dashboard ---------- */
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(58, 45, 35, 0.72), rgba(58, 45, 35, 0.35)),
    url("/guest/hero.jpg") center / cover,
    var(--accent);
}

.hero-card .names {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}

.hero-card .meta {
  margin: 4px 0 0;
  opacity: 0.9;
}

.countdown-big {
  text-align: center;
  font-family: var(--font-en);
}

.countdown-big strong {
  display: block;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
}

.countdown-big span {
  font-size: 13px;
  letter-spacing: 0.2em;
}

@media (max-width: 560px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .countdown-big {
    text-align: left;
  }
}

.bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-alt);
}

.bar > span {
  height: 100%;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 12.5px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: -1px;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list li:last-child {
  border-bottom: 0;
}

.mini-list .date {
  flex: none;
  width: 92px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mini-list .date.is-overdue {
  color: var(--danger);
  font-weight: 600;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-alt);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.share-row:last-child {
  border-bottom: 0;
}

.share-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

.share-row strong {
  flex: none;
  width: 110px;
  font-weight: 500;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data th,
table.data td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

table.data th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

table.data tbody tr {
  cursor: pointer;
}

table.data tbody tr:hover {
  background: #fcfaf7;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data td.wrap {
  white-space: normal;
  min-width: 160px;
}

table.data tfoot td {
  background: var(--surface-alt);
  font-weight: 600;
}

table.data input[type="number"] {
  width: 110px;
  min-height: 30px;
  padding: 4px 8px;
  text-align: right;
}

.name-cell strong {
  font-weight: 500;
}

.name-cell small {
  display: block;
  color: var(--text-muted);
  font-size: 11.5px;
}

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 12px;
  background: var(--surface-alt);
  color: var(--text-muted);
}

.tag.is-groom { background: #e6edf4; color: #4d6782; }
.tag.is-bride { background: var(--blush-soft); color: #a3655c; }
.tag.is-attending { background: var(--sage-soft); color: #566a4d; }
.tag.is-declined { background: #f1e6e4; color: #9a5a52; }
.tag.is-pending { background: #f5ecdc; color: #94692a; }
.tag.is-warn { background: #fbefd9; color: #8d6216; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip-filter {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip-filter strong {
  margin-left: 4px;
}

.chip-filter.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
}

.tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Seating ---------- */
.seating {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pool {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.pool h3 {
  margin: 14px 0 8px;
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text-muted);
}

.pool.is-drop {
  outline: 2px dashed var(--accent);
}

.guest-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--groom);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: grab;
  user-select: none;
}

.guest-chip.is-bride {
  border-left-color: var(--bride);
}

.guest-chip small {
  color: var(--text-muted);
  font-size: 11px;
}

.guest-chip .grow {
  flex: 1;
  min-width: 0;
}

.guest-chip.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(138, 109, 80, 0.25);
}

.guest-chip.is-dragging {
  opacity: 0.4;
}

.guest-chip .icon-btn {
  width: 24px;
  height: 24px;
}

.guest-chip .icon-btn .icon {
  width: 14px;
  height: 14px;
}

.guest-chip .warn {
  color: var(--warn);
  font-size: 11px;
}

.seat-hint {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 30;
  margin: 0;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.head-table {
  margin-bottom: 16px;
  padding: 14px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-family: var(--font-serif);
}

.tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.table-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.table-card.is-drop,
.table-card.is-target {
  border-color: var(--accent);
  background: #fdfaf6;
}

.table-card.is-target {
  cursor: copy;
}

.table-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.table-name {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 600;
}

.table-count {
  font-size: 12.5px;
  color: var(--text-muted);
}

.table-count.is-over {
  color: var(--danger);
  font-weight: 600;
}

.table-head .icon-btn {
  margin-left: auto;
}

.table-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .seating {
    grid-template-columns: 1fr;
  }

  .pool {
    position: static;
    max-height: 280px;
  }
}

/* ---------- Tasks ---------- */
.phase {
  margin-bottom: 20px;
}

.phase h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
}

.phase h2 small {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
}

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
}

.task:first-of-type {
  border-top: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.task:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.task:only-of-type {
  border-radius: var(--radius);
}

.task-title {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.task-title small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.task.is-done .task-title > span {
  color: var(--text-muted);
  text-decoration: line-through;
}

.task-due {
  flex: none;
  font-size: 12.5px;
  color: var(--text-muted);
}

.task-due.is-overdue {
  color: var(--danger);
  font-weight: 600;
}

.task-due.is-soon {
  color: var(--warn);
  font-weight: 600;
}

.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.progress .bar {
  flex: 1;
}

/* ---------- Photos ---------- */
.share-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.share-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.share-card .qr {
  width: 120px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-card .qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.share-card h2 {
  margin-bottom: 6px;
}

.share-card p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  word-break: break-all;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.switch input {
  appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  border: 0;
  background: var(--line);
  transition: background 0.2s;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.switch input:checked {
  background: var(--sage);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--surface-alt);
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-tile.is-hidden img {
  opacity: 0.35;
  filter: grayscale(1);
}

.photo-tile .badges {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.photo-tile .who {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 11.5px;
  text-align: left;
}

.video-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.video-thumb .icon {
  width: 32px;
  height: 32px;
}

.photo-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}

.photo-view img,
.photo-view video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: #1e1b18;
}

@media (max-width: 720px) {
  .photo-view {
    grid-template-columns: 1fr;
  }
}

/* ---------- Paper ---------- */
.paper-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paper-card p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Modal ---------- */
.modal {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal.is-wide {
  width: min(960px, calc(100vw - 24px));
}

.modal::backdrop {
  background: rgba(40, 34, 28, 0.45);
  backdrop-filter: blur(2px);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.quote {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-alt);
  white-space: pre-wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 99px;
  background: #3a3531;
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--danger);
}

@media (max-width: 860px) {
  .toast {
    bottom: 88px;
  }
}

/* ---------- Login ---------- */
.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(ellipse at top, rgba(201, 143, 134, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(127, 144, 118, 0.16), transparent 60%),
    var(--bg);
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(360px, 100%);
  padding: 36px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.login-script {
  margin: 0;
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--accent);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------- 招待状の編集 ---------- */
.invite-sub {
  margin: 20px 0 10px;
  font-size: 14px;
}

.invite-list {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.invite-list > .invite-item {
  justify-self: stretch;
}

.invite-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.invite-list .invite-item {
  margin-bottom: 0;
}

.invite-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.invite-item-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-photo {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.invite-photo.is-round {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.invite-photo.is-empty {
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--text-muted);
}

.invite-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.invite-gallery figure {
  position: relative;
  margin: 0;
}

.invite-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.invite-gallery .btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgb(255 255 255 / 0.85);
}
