/* Piano School web UI: one stylesheet for the landing page, login, phone simulator and admin. */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #1b2230;
  --muted: #535d6c;
  --border: #d5dbe3;
  --accent: #2b5a87;
  --accent-hover: #21486d;
  --accent-text: #ffffff;
  --accent-soft: #e5eef7;
  --focus: #1a73e8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1d6f46;
  --ok-soft: #e4f4ec;
  --warn-text: #5a3f00;
  --warn-bg: #fff4d6;
  --warn-border: #e8c066;
  --bubble-me: #1a5fd0;
  --bubble-me-text: #ffffff;
  --bubble-them: #e7eaf0;
  --bubble-them-text: #1b2230;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2029;
    --surface-2: #232b36;
    --text: #e6eaf0;
    --muted: #a7b0bd;
    --border: #344050;
    --accent: #6ea6dc;
    --accent-hover: #8dbbe6;
    --accent-text: #0e1620;
    --accent-soft: #1f3348;
    --focus: #8ab4f8;
    --danger: #ff8a80;
    --danger-soft: #3a1d1b;
    --ok: #7fd3a6;
    --ok-soft: #173327;
    --warn-text: #ffe2a3;
    --warn-bg: #3a2f12;
    --warn-border: #8a6d22;
    --bubble-me: #2f6fd6;
    --bubble-me-text: #ffffff;
    --bubble-them: #2a323e;
    --bubble-them-text: #e6eaf0;
    --shadow: none;
    color-scheme: dark;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

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

.small {
  font-size: 0.875rem;
}

span.block {
  display: block;
}

/* ---------- layout ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-block;
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px;
  background: linear-gradient(90deg, var(--accent-text) 0 28%, transparent 28% 36%, var(--accent-text) 36% 64%, transparent 64% 72%, var(--accent-text) 72%);
  border-radius: 2px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions form {
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.narrow {
  max-width: 440px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.card > h2:first-child,
.card > h3:first-child {
  margin-top: 0;
}

.stack > * + * {
  margin-top: 12px;
}

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

.spacer {
  flex: 1;
}

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

/* ---------- landing ---------- */

.hero {
  padding: 24px 0 8px;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
}

.choice {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

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

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

/* ---------- forms ---------- */

label {
  font-weight: 550;
  font-size: 0.925rem;
}

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

.field .hint {
  font-size: 0.825rem;
  color: var(--muted);
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 40px;
  width: 100%;
  min-width: 0;
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

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

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
  min-width: 0;
}

legend {
  font-weight: 550;
  font-size: 0.925rem;
  padding: 0 4px;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.code {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ---------- buttons ---------- */

.btn {
  font: inherit;
  font-weight: 550;
  font-size: 0.925rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

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

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

.btn.danger:hover {
  background: var(--danger-soft);
}

.btn.small {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

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

.btn.ghost:hover {
  background: var(--surface-2);
}

.btn.block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- notices + badges ---------- */

.notice {
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.notice.error {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--text);
}

.notice.info,
.notice.ok {
  background: var(--ok-soft);
  border-color: var(--ok);
}

.banner {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.banner strong {
  display: block;
  margin-bottom: 2px;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}

.badge.role-admin {
  background: #efe7fb;
  color: #4b2a83;
  border-color: #d8c6f3;
}

.badge.role-teacher {
  background: #e3f1fb;
  color: #11507a;
  border-color: #bfdcf0;
}

.badge.role-parent {
  background: #e6f5ea;
  color: #1c5c33;
  border-color: #c3e4cd;
}

.badge.status-scheduled {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.badge.status-completed,
.badge.status-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}

.badge.status-cancelled,
.badge.status-error,
.badge.status-timeout,
.badge.inactive {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.badge.status-no_show,
.badge.status-skipped,
.badge.status-warn,
.badge.status-running {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: transparent;
}

@media (prefers-color-scheme: dark) {
  .badge.role-admin {
    background: #2e2440;
    color: #d6c4f5;
    border-color: #4a3a68;
  }
  .badge.role-teacher {
    background: #1b3245;
    color: #a9d3f2;
    border-color: #2c4c66;
  }
  .badge.role-parent {
    background: #1b3524;
    color: #a8e0bb;
    border-color: #2c5239;
  }
}

/* ---------- tables ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

td input,
td select {
  min-width: 110px;
}

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

/* ---------- admin ---------- */

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.tab {
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 12px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.flash {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  z-index: 50;
  margin: 0;
  box-shadow: var(--shadow);
}

.day-group + .day-group {
  margin-top: 16px;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lesson-list li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  align-items: center;
}

.lesson-list li:last-child {
  border-bottom: none;
}

.lesson-time {
  font-weight: 600;
  min-width: 140px;
}

.lesson-main {
  flex: 1;
  min-width: 180px;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.split > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.list-buttons button {
  width: 100%;
  text-align: left;
  font: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  cursor: pointer;
  color: var(--text);
  border-radius: 0;
}

.list-buttons button:hover,
.list-buttons button[aria-current="true"] {
  background: var(--accent-soft);
}

.list-buttons .snippet {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

pre.doc {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
}

dl.facts dt {
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
  font-weight: 550;
  min-width: 0;
  overflow-wrap: anywhere;
}

dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(440px, calc(100% - 32px));
}

dialog::backdrop {
  background: rgba(10, 14, 20, 0.45);
}

dialog form {
  padding: 16px;
}

dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- phone simulator ---------- */

body.phone-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.phone-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

@media (min-width: 560px) {
  body.phone-page {
    padding: 16px 0;
  }
  .phone-shell {
    min-height: 0;
    height: calc(100dvh - 32px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.phone-top .who {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.phone-top .who .name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-top .who .num {
  font-size: 0.8rem;
  color: var(--muted);
}

.phone-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.day-sep {
  align-self: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 10px 0 4px;
  font-weight: 600;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.msg.me {
  align-self: flex-end;
  align-items: flex-end;
}

.msg.them {
  align-self: flex-start;
  align-items: flex-start;
}

.bubble {
  padding: 8px 12px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg.me .bubble {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-bottom-right-radius: 6px;
}

.msg.them .bubble {
  background: var(--bubble-them);
  color: var(--bubble-them-text);
  border-bottom-left-radius: 6px;
}

.msg .meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 2px 6px 6px;
}

.msg .kind {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.msg .voice-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 2px;
}

.typing {
  align-self: flex-start;
  background: var(--bubble-them);
  color: var(--bubble-them-text);
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 0.875rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}

.dots {
  display: inline-flex;
  gap: 3px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: blink 1.2s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots span {
    animation: none;
    opacity: 0.6;
  }
}

.composer {
  border-top: 1px solid var(--border);
  padding: 8px;
  background: var(--surface);
}

.composer form {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin: 0;
}

.composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 140px;
  border-radius: 20px;
  padding: 9px 14px;
  resize: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  flex: none;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-btn.recording {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.recording-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
  font-size: 0.875rem;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  animation: blink 1.2s infinite ease-in-out;
}

.composer .error-line {
  margin: 0 4px 6px;
  font-size: 0.85rem;
  color: var(--danger);
}

.counter {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin: 2px 8px 0;
}

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

.pick-list li + li {
  border-top: 1px solid var(--border);
}

.pick-list button {
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
}

.pick-list button:hover {
  background: var(--surface-2);
}

.pick-list .pname {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.pick-list .pnum {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.phone-top h1.name {
  font-size: 1rem;
  margin: 0;
}

.typing-wrap {
  padding: 0 12px;
}

.phone-shell > .screen > .notice {
  margin: 8px 12px 0;
}

.row > input,
.row > select {
  width: auto;
  flex: 0 1 auto;
}

.admin-thread {
  max-height: 60vh;
  min-height: 200px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

h4 {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- inbox (conversations + takeover) ---------- */

.inbox {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.inbox > * {
  min-width: 0;
}

.inbox-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.inbox-filters input[type="search"] {
  width: 100%;
}

.conv-list button.unread strong {
  font-weight: 800;
}

.conv-list button .row {
  flex-wrap: wrap;
  gap: 6px;
}

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

.badge.status-paused {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: var(--warn-border);
}

.unknown-card summary {
  cursor: pointer;
  font-weight: 600;
}

.back-btn {
  display: none;
}

.thread-head .row {
  flex-wrap: wrap;
  gap: 8px;
}

.paused-banner {
  margin-bottom: 0;
}

.msg.staff .bubble {
  background: var(--ok-soft);
  color: var(--text);
  border: 1px solid var(--ok);
}

.event-line {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  max-width: 92%;
  margin: 4px 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-line .event-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
}

.event-line time {
  font-size: 0.7rem;
  opacity: 0.85;
}

.event-line.action-line {
  border: 1px dashed var(--border);
  background: transparent;
}

.event-line.action-line.by-ai .event-tag {
  color: var(--accent);
}

.composer-form textarea {
  width: 100%;
}

details.placeholders summary {
  cursor: pointer;
  font-weight: 600;
}

/* E12: on phones show the list OR the open conversation, never a thread below the fold. */
@media (max-width: 760px) {
  .inbox {
    grid-template-columns: minmax(0, 1fr);
  }
  .inbox[data-view="thread"] > .inbox-list {
    display: none;
  }
  .inbox[data-view="list"] > .inbox-thread {
    display: none;
  }
  .back-btn {
    display: inline-flex;
  }
  .admin-thread {
    max-height: 65vh;
  }
}

.notice.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

/* Calendar invites (email-calendar): invite badge + one chip per attendee answer */
.invite-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin-top: 4px;
}

.rsvp {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.rsvp.rsvp-accepted {
  color: var(--ok);
  border-color: var(--ok);
}

.rsvp.rsvp-declined {
  color: var(--danger);
  border-color: var(--danger);
  font-weight: 600;
}

.rsvp.rsvp-tentative {
  color: var(--warn-text);
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.email-cell {
  overflow-wrap: anywhere;
  max-width: 220px;
}
