:root {
  --ink: #241c1c;
  --ink-soft: #514746;
  --wine: #633044;
  --wine-deep: #351822;
  --wine-muted: #8c6270;
  --ivory: #f4efe5;
  --paper: #fffdf8;
  --champagne: #b99555;
  --champagne-light: #d8c08e;
  --sage: #718176;
  --rose: #d5b3b7;
  --line: rgba(61, 39, 41, 0.13);
  --line-strong: rgba(61, 39, 41, 0.22);
  --success: #587362;
  --warning: #a76f2d;
  --danger: #a2474f;
  --shadow: 0 24px 70px rgba(48, 24, 31, 0.12);
  --shadow-soft: 0 12px 34px rgba(48, 24, 31, 0.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 93% 2%, rgba(185, 149, 85, 0.1), transparent 24rem),
    var(--ivory);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(185, 149, 85, 0.34);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--wine-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--champagne-light);
}

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

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px);
  background:
    linear-gradient(140deg, rgba(53, 24, 34, 0.98), rgba(93, 41, 61, 0.94)),
    var(--wine-deep);
  color: white;
}

.login-story::after {
  position: absolute;
  right: -14%;
  bottom: -28%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(216, 192, 142, 0.17);
  border-radius: 50%;
  content: "";
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: auto 0;
}

.story-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.1vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.story-note {
  max-width: 500px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.story-signature {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--champagne-light);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.story-signature img {
  width: 48px;
  height: 48px;
  filter: sepia(0.8) saturate(0.55) brightness(1.6);
}

.story-orbit {
  position: absolute;
  top: 7%;
  right: 4%;
  width: 360px;
  height: 360px;
  opacity: 0.8;
}

.orbit-line {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216, 192, 142, 0.18);
  border-radius: 50%;
}

.orbit-two {
  inset: 58px;
}

.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 9px rgba(185, 149, 85, 0.12);
  animation: breathe 3s ease-in-out infinite;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}

.login-card {
  width: min(100%, 420px);
}

.login-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: var(--shadow-soft);
}

.login-mark img {
  width: 48px;
  height: 48px;
}

.login-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.login-intro {
  margin: 10px 0 32px;
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input,
select {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 112px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--champagne);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(185, 149, 85, 0.09);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 17px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button.primary {
  background: var(--wine-deep);
  color: white;
  box-shadow: 0 10px 24px rgba(53, 24, 34, 0.18);
}

.button.primary:hover {
  background: var(--wine);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--wine-deep);
}

.button.danger {
  border-color: rgba(162, 71, 79, 0.25);
  background: rgba(162, 71, 79, 0.08);
  color: var(--danger);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.button.full {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
}

.form-error {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.login-security {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #776b69;
  font-size: 0.71rem;
  line-height: 1.55;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 27px 18px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(185, 149, 85, 0.13), transparent 40%),
    var(--wine-deep);
  color: rgba(255, 255, 255, 0.82);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px 30px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(216, 192, 142, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  filter: sepia(0.7) brightness(1.45);
}

.brand-mark .live-dot {
  position: absolute;
  right: 1px;
  bottom: 3px;
  border: 2px solid var(--wine-deep);
}

.brand-lockup strong {
  display: block;
  color: white;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.brand-lockup div > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#main-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: grid;
  min-height: 45px;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  text-align: left;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: white;
}

.nav-item.active {
  background: rgba(216, 192, 142, 0.13);
  color: white;
}

.nav-glyph {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.68rem;
  opacity: 0.72;
}

.nav-item.active .nav-glyph {
  border-color: var(--champagne-light);
  color: var(--champagne-light);
}

.nav-item > span:nth-child(2) {
  font-size: 0.78rem;
  font-weight: 610;
}

.nav-count {
  min-width: 22px;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  text-align: center;
}

.nav-count:empty {
  display: none;
}

.nav-count.attention:not(:empty) {
  background: var(--champagne);
  color: var(--wine-deep);
  font-weight: 800;
}

.sidebar-foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding: 20px 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wedding-countdown {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.wedding-countdown span {
  color: var(--champagne-light);
  font-family: var(--serif);
  font-size: 2rem;
}

.wedding-countdown p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  line-height: 1.3;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.47);
  cursor: pointer;
  font-size: 0.68rem;
  text-align: left;
}

.text-button:hover {
  color: white;
}

.main-area {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(24px, 4vw, 54px);
  background: rgba(244, 239, 229, 0.89);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.last-updated {
  color: #8a7d7b;
  font-size: 0.65rem;
}

.aurora-status {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 248, 0.75);
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 650;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a19b98;
}

.live-dot.online {
  background: #6c9a78;
  box-shadow: 0 0 0 5px rgba(108, 154, 120, 0.12);
}

.live-dot.paused {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(167, 111, 45, 0.12);
}

.page-content {
  min-height: calc(100vh - 92px);
  padding: clamp(24px, 4vw, 54px);
}

.loading-state {
  display: grid;
  min-height: 56vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #857876;
  font-family: var(--serif);
}

.loading-monogram {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: breathe 2.4s ease-in-out infinite;
}

.loading-monogram img {
  width: 54px;
  height: 54px;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--shadow-soft);
}

.hero-status {
  position: relative;
  grid-column: span 7;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(132deg, rgba(53, 24, 34, 0.98), rgba(99, 48, 68, 0.94)),
    var(--wine-deep);
  color: white;
}

.hero-status::before {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(216, 192, 142, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-status::after {
  position: absolute;
  top: -28px;
  right: 35px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(216, 192, 142, 0.11);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-status h2 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-status p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.hero-status-row {
  position: absolute;
  right: 38px;
  bottom: 34px;
  left: 38px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--champagne-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-signal .live-dot {
  width: 10px;
  height: 10px;
}

.hero-actions {
  display: flex;
  gap: 8px;
}

.hero-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.rsvp-card {
  grid-column: span 5;
  padding: 30px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 6px 0 0;
  color: #807472;
  font-size: 0.75rem;
}

.rsvp-ring-row {
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: center;
  gap: 24px;
}

.rsvp-ring {
  --value: 0deg;
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--wine) var(--value), #e9e1d6 0);
}

.rsvp-ring::before {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.rsvp-ring strong,
.rsvp-ring span {
  position: relative;
  z-index: 1;
}

.rsvp-ring strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

.rsvp-ring span {
  color: #8a7d7a;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.legend-list {
  display: grid;
  gap: 14px;
}

.legend-item {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 0.73rem;
}

.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
}

.legend-item i.awaiting {
  background: var(--champagne);
}

.legend-item i.declined {
  background: var(--rose);
}

.legend-item strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.metrics-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  min-height: 134px;
  padding: 22px 24px;
}

.metric-card span {
  color: #817472;
  font-size: 0.69rem;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.metric-card small {
  color: var(--sage);
  font-size: 0.65rem;
}

.activity-card {
  grid-column: span 8;
  padding: 28px;
}

.attention-card {
  grid-column: span 4;
  padding: 28px;
}

.activity-list,
.attention-list {
  display: grid;
  gap: 2px;
}

.activity-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  border-top: 1px solid var(--line);
}

.activity-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eee3dd;
  color: var(--wine);
  font-family: var(--serif);
  text-transform: uppercase;
}

.activity-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.73rem;
}

.activity-row p {
  overflow: hidden;
  margin: 0;
  color: #756967;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row time {
  color: #9b8e8b;
  font-size: 0.61rem;
}

.attention-item {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.attention-item strong {
  font-size: 0.75rem;
}

.attention-item span {
  color: #786b69;
  font-size: 0.68rem;
  line-height: 1.45;
}

.empty-compact {
  padding: 24px 0;
  color: #8c7e7b;
  font-family: var(--serif);
  font-size: 1rem;
  text-align: center;
}

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

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  min-width: min(380px, 50vw);
}

.search-box input {
  padding-left: 40px;
  background: var(--paper);
}

.search-box::before {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 15px;
  color: #968a87;
  content: "⌕";
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 253, 248, 0.72);
  color: #716361;
  cursor: pointer;
  font-size: 0.69rem;
}

.filter-chip.active {
  border-color: var(--wine);
  background: var(--wine);
  color: white;
}

.conversation-layout {
  display: grid;
  height: calc(100vh - 152px);
  min-height: 650px;
  grid-template-columns: minmax(250px, 0.82fr) minmax(360px, 1.5fr) minmax(250px, 0.86fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.conversation-list-pane,
.chat-pane,
.context-pane {
  min-width: 0;
}

.conversation-list-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
}

.pane-search {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.pane-search .search-box {
  min-width: 0;
}

.conversation-list {
  overflow-y: auto;
}

.conversation-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  min-height: 84px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.conversation-row:hover,
.conversation-row.active {
  background: #f6f0e8;
}

.conversation-row.active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--wine);
  content: "";
}

.conversation-row .avatar,
.guest-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #e9ded9;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1rem;
}

.conversation-main {
  min-width: 0;
}

.conversation-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 0.76rem;
  font-weight: 720;
}

.conversation-preview {
  overflow: hidden;
  color: #7e7270;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  align-self: start;
  padding-top: 3px;
  color: #9b8e8b;
  font-size: 0.59rem;
}

.mini-alert {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}

.mini-human {
  border-radius: 4px;
  padding: 2px 4px;
  background: rgba(99, 48, 68, 0.1);
  color: var(--wine);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.chat-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(185, 149, 85, 0.055), transparent 32rem),
    #faf7f1;
}

.chat-header {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  background: rgba(255, 253, 248, 0.88);
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chat-identity strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.chat-identity span {
  color: #857976;
  font-size: 0.64rem;
}

.chat-actions {
  display: flex;
  gap: 7px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 24px 22px;
}

.message {
  max-width: min(76%, 560px);
}

.message.inbound {
  align-self: flex-start;
}

.message.outbound {
  align-self: flex-end;
}

.message-bubble {
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 14px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(49, 30, 32, 0.045);
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message.outbound .message-bubble {
  border-color: rgba(99, 48, 68, 0.08);
  border-radius: 16px 16px 4px 16px;
  background: #eee1df;
}

.message-meta {
  display: flex;
  gap: 7px;
  margin-top: 4px;
  padding: 0 3px;
  color: #a09592;
  font-size: 0.56rem;
}

.message.outbound .message-meta {
  justify-content: flex-end;
}

.composer {
  padding: 14px 17px 17px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.composer-note {
  margin: 0 0 8px;
  color: #857976;
  font-size: 0.63rem;
}

.composer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.composer textarea {
  min-height: 45px;
  max-height: 120px;
}

.context-pane {
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #f9f5ed;
}

.context-section {
  padding: 21px;
  border-bottom: 1px solid var(--line);
}

.context-profile {
  text-align: center;
}

.context-profile .guest-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  font-size: 1.35rem;
}

.context-profile h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.context-profile p {
  margin: 5px 0 0;
  color: #857875;
  font-size: 0.65rem;
}

.status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eee8df;
  color: #695d5a;
  font-size: 0.6rem;
  font-weight: 720;
}

.status-pill.confirmed {
  background: rgba(88, 115, 98, 0.12);
  color: var(--success);
}

.status-pill.declined {
  background: rgba(162, 71, 79, 0.1);
  color: var(--danger);
}

.status-pill.needs_help,
.status-pill.review {
  background: rgba(167, 111, 45, 0.12);
  color: var(--warning);
}

.status-pill.human {
  background: rgba(99, 48, 68, 0.12);
  color: var(--wine);
}

.context-title {
  margin: 0 0 13px;
  color: #8c7e7b;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-list {
  display: grid;
  gap: 12px;
}

.fact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: #766966;
  font-size: 0.68rem;
}

.fact-row strong {
  color: var(--ink);
  font-weight: 680;
  text-align: right;
}

.handoff-mini {
  margin-bottom: 9px;
  border-left: 2px solid var(--warning);
  padding: 8px 0 8px 10px;
}

.handoff-mini strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.67rem;
}

.handoff-mini p {
  margin: 0;
  color: #776a67;
  font-size: 0.64rem;
  line-height: 1.4;
}

.data-surface {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 253, 248, 0.8);
}

.data-table th {
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-strong);
  color: #817471;
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
}

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

.table-name strong {
  display: block;
  margin-bottom: 4px;
}

.table-name span {
  color: #8d817e;
  font-size: 0.63rem;
}

.handoff-grid,
.knowledge-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.handoff-card {
  grid-column: span 4;
  display: grid;
  align-content: start;
  min-height: 250px;
  padding: 23px;
}

.handoff-card .category {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(167, 111, 45, 0.1);
  color: var(--warning);
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.handoff-card h3 {
  margin: 20px 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.handoff-card p {
  margin: 0;
  color: #756865;
  font-size: 0.72rem;
  line-height: 1.55;
}

.handoff-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.handoff-card time {
  color: #978a87;
  font-size: 0.6rem;
}

.knowledge-section {
  grid-column: span 6;
  overflow: hidden;
}

.knowledge-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.knowledge-section h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: capitalize;
}

.knowledge-section header span {
  color: #8d807d;
  font-size: 0.63rem;
}

.knowledge-item {
  border-bottom: 1px solid var(--line);
}

.knowledge-item:last-child {
  border-bottom: 0;
}

.knowledge-item summary {
  padding: 15px 20px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 680;
  list-style: none;
}

.knowledge-item summary::-webkit-details-marker {
  display: none;
}

.knowledge-answer {
  padding: 0 20px 18px;
  color: #706360;
  font-size: 0.7rem;
  line-height: 1.6;
}

.knowledge-source {
  display: block;
  margin-top: 9px;
  color: var(--wine-muted);
  font-size: 0.59rem;
}

.settings-card {
  grid-column: span 6;
  padding: 27px;
}

.settings-card.full-width {
  grid-column: 1 / -1;
}

.settings-list {
  display: grid;
  gap: 0;
}

.settings-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.71rem;
}

.settings-row span {
  color: #7c6f6c;
}

.settings-row strong {
  font-weight: 680;
}

.audit-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 0.68rem;
}

.audit-row span {
  color: #7c6f6c;
}

.audit-row time {
  color: #9b8e8b;
  font-size: 0.59rem;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 20, 25, 0.48);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 20px;
  color: #665956;
  font-size: 0.74rem;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 8px;
}

.toast-root {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(360px, calc(100vw - 48px));
  gap: 9px;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  padding: 13px 15px;
  background: var(--wine-deep);
  color: white;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  line-height: 1.45;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: #74333b;
}

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

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: #817572;
  text-align: center;
}

.empty-state strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1180px) {
  .overview-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero-status,
  .rsvp-card,
  .activity-card,
  .attention-card {
    grid-column: span 6;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .conversation-layout {
    grid-template-columns: minmax(240px, 0.8fr) minmax(380px, 1.3fr);
  }

  .context-pane {
    display: none;
  }

  .knowledge-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 38vh;
    padding: 40px 28px;
  }

  .story-copy h1 {
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .story-note {
    display: none;
  }

  .story-signature {
    margin-top: 44px;
  }

  .login-panel {
    padding: 46px 24px 64px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 90;
    left: 0;
    width: 244px;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 30px 0 80px rgba(36, 20, 25, 0.25);
  }

  .mobile-menu {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 7px 10px;
    background: var(--paper);
    cursor: pointer;
    font-size: 0.68rem;
  }

  .topbar {
    min-height: 78px;
    padding: 13px 18px;
  }

  .topbar h1 {
    font-size: 1.55rem;
  }

  .last-updated {
    display: none;
  }

  .page-content {
    min-height: calc(100vh - 78px);
    padding: 18px;
  }

  .conversation-layout {
    height: calc(100vh - 115px);
    min-height: 600px;
    grid-template-columns: 1fr;
  }

  .conversation-list-pane {
    display: none;
  }

  .conversation-list-pane.mobile-visible {
    display: grid;
  }

  .chat-pane.mobile-hidden {
    display: none;
  }

  .handoff-card,
  .settings-card {
    grid-column: 1 / -1;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-group {
    overflow-x: auto;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .data-surface {
    overflow-x: auto;
  }

  .data-table {
    min-width: 760px;
  }
}

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

  .hero-status,
  .rsvp-card,
  .activity-card,
  .attention-card {
    grid-column: 1;
  }

  .hero-status {
    min-height: 360px;
  }

  .hero-status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    padding: 18px;
  }

  .rsvp-ring-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legend-list {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .topbar-actions .aurora-status {
    padding: 8px;
  }

  #top-status-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Conversation studio — the chat is the primary working surface. */
.page-content.conversation-page {
  overflow: hidden;
  padding: 14px 22px 22px;
}

.conversation-page .conversation-layout {
  position: relative;
  height: calc(100vh - 132px);
  min-height: 520px;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  border-radius: 22px;
  background: #fbf8f2;
  box-shadow:
    0 24px 70px rgba(48, 24, 31, 0.1),
    0 2px 10px rgba(48, 24, 31, 0.04);
}

.conversation-list-pane {
  position: relative;
  z-index: 2;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #fffdf9;
}

.conversation-list-head {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px 13px;
}

.conversation-list-head strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.conversation-kicker {
  margin: 0 0 3px;
  color: var(--wine-muted);
  font-size: 0.56rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.conversation-total {
  display: grid;
  min-width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(99, 48, 68, 0.16);
  border-radius: 50%;
  background: rgba(99, 48, 68, 0.06);
  color: var(--wine);
  font-size: 0.68rem;
  font-weight: 760;
}

.pane-search {
  padding: 0 14px 13px;
}

.pane-search .search-box input {
  min-height: 42px;
  border-color: rgba(61, 39, 41, 0.1);
  border-radius: 12px;
  background: #f8f4ed;
  font-size: 0.73rem;
}

.conversation-filters {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.conversation-filters::-webkit-scrollbar {
  display: none;
}

.conversation-filter {
  min-height: 29px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: #857875;
  cursor: pointer;
  font-size: 0.61rem;
  font-weight: 700;
}

.conversation-filter:hover {
  color: var(--wine);
}

.conversation-filter.active {
  border-color: rgba(99, 48, 68, 0.12);
  background: rgba(99, 48, 68, 0.08);
  color: var(--wine-deep);
}

.conversation-list {
  border-top: 1px solid var(--line);
}

.conversation-row {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 82px;
  padding: 13px 14px;
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}

.conversation-row:hover {
  background: #faf5ee;
}

.conversation-row.active {
  background:
    linear-gradient(90deg, rgba(99, 48, 68, 0.08), transparent 88%),
    #faf6ef;
  box-shadow: inset 3px 0 var(--wine);
}

.conversation-row.active::before {
  display: none;
}

.conversation-avatar {
  position: relative;
}

.conversation-row .avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(99, 48, 68, 0.08);
  background: #eee4df;
  font-size: 0.95rem;
}

.owner-dot {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #fffdf9;
  border-radius: 50%;
  background: var(--success);
}

.owner-dot.human {
  background: var(--champagne);
}

.conversation-row-top,
.conversation-preview-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-name {
  overflow: hidden;
  margin: 0 0 7px;
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  flex: 0 0 auto;
  padding: 0;
  font-size: 0.57rem;
}

.conversation-preview {
  font-size: 0.68rem;
  line-height: 1.35;
}

.mini-alert {
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(167, 111, 45, 0.11);
}

.conversation-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  padding: 30px;
  color: #8e807d;
  text-align: center;
}

.conversation-empty > span {
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.conversation-empty strong {
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.conversation-empty p {
  margin: 4px 0 0;
  font-size: 0.66rem;
}

.chat-pane {
  position: relative;
  z-index: 1;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 92% 2%, rgba(185, 149, 85, 0.1), transparent 25rem),
    radial-gradient(circle at 8% 80%, rgba(99, 48, 68, 0.035), transparent 26rem),
    #f9f6f0;
}

.care-ribbon {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid rgba(88, 115, 98, 0.11);
  background: rgba(88, 115, 98, 0.075);
  color: var(--success);
  font-size: 0.6rem;
  font-weight: 720;
  letter-spacing: 0.025em;
}

.care-ribbon.human {
  border-color: rgba(185, 149, 85, 0.18);
  background: rgba(185, 149, 85, 0.1);
  color: #816124;
}

.care-ribbon-dot,
.composer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.78;
}

.chat-header {
  min-height: 78px;
  padding: 13px 18px;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 248, 0.87);
}

.chat-identity .guest-avatar {
  width: 43px;
  height: 43px;
  font-size: 0.96rem;
}

.chat-identity strong {
  font-size: 1.18rem;
}

.chat-identity span {
  display: block;
  max-width: min(38vw, 430px);
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button.quiet {
  border-color: transparent;
  background: transparent;
  color: #756765;
}

.button.quiet:hover {
  background: rgba(99, 48, 68, 0.06);
  color: var(--wine);
}

.mobile-back-conversations {
  display: none;
}

.messages {
  min-height: 0;
  gap: 12px;
  padding: 25px clamp(22px, 4vw, 52px) 30px;
  scroll-behavior: smooth;
}

.message {
  max-width: min(74%, 650px);
}

.message-day {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 7px 0 3px;
}

.message-day span {
  border: 1px solid rgba(61, 39, 41, 0.09);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 253, 248, 0.82);
  color: #8d807d;
  font-size: 0.56rem;
  box-shadow: 0 4px 12px rgba(48, 24, 31, 0.035);
}

.message-bubble {
  border-radius: 17px 17px 17px 5px;
  padding: 12px 15px;
  background: rgba(255, 253, 248, 0.96);
  font-size: 0.8rem;
  line-height: 1.57;
}

.message-bubble a {
  color: var(--wine);
  font-weight: 650;
  text-decoration-color: rgba(99, 48, 68, 0.28);
  text-underline-offset: 2px;
}

.message.outbound .message-bubble {
  border-color: rgba(99, 48, 68, 0.09);
  border-radius: 17px 17px 5px 17px;
  background: #eee1df;
}

.message-meta {
  gap: 6px;
  margin-top: 5px;
  font-size: 0.56rem;
}

.message-kind {
  border-radius: 999px;
  padding: 1px 5px;
  background: rgba(99, 48, 68, 0.07);
}

.delivery-mark {
  color: var(--success);
  font-weight: 800;
}

.composer {
  padding: 12px 17px 16px;
  border-top: 1px solid rgba(61, 39, 41, 0.1);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.composer-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 8px;
  color: #816124;
  font-size: 0.6rem;
}

.composer-status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.composer-box {
  overflow: hidden;
  border: 1px solid rgba(99, 48, 68, 0.15);
  border-radius: 15px;
  background: #fffdf9;
  box-shadow: 0 8px 25px rgba(48, 24, 31, 0.055);
}

.composer-box textarea {
  width: 100%;
  min-height: 48px;
  max-height: 140px;
  border: 0;
  border-radius: 0;
  padding: 13px 14px 5px;
  background: transparent;
  box-shadow: none;
  resize: none;
  font-size: 0.78rem;
}

.composer-box textarea:focus {
  border: 0;
  box-shadow: none;
}

.composer-foot {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 6px 6px 14px;
}

.composer-foot > span {
  color: #a19491;
  font-size: 0.55rem;
}

.composer-send {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.68rem;
}

.composer-locked {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.composer-locked strong {
  display: block;
  margin-bottom: 3px;
  color: var(--success);
  font-size: 0.72rem;
}

.composer-locked p {
  margin: 0;
  color: #847774;
  font-size: 0.63rem;
}

.context-pane {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: min(360px, 92%);
  border-left: 1px solid var(--line);
  background: #fffaf2;
  box-shadow: -24px 0 70px rgba(48, 24, 31, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateX(102%);
  transition:
    transform 190ms ease,
    opacity 150ms ease;
}

.conversation-layout::after {
  position: absolute;
  z-index: 15;
  inset: 0;
  background: rgba(36, 18, 23, 0.18);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.conversation-layout.context-open::after {
  opacity: 1;
}

.conversation-layout.context-open .context-pane {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.context-drawer-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  background: rgba(255, 250, 242, 0.95);
  backdrop-filter: blur(16px);
}

.context-drawer-head strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.context-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  color: #776a67;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.context-edit {
  margin-top: 15px;
}

@media (max-width: 1180px) {
  .conversation-page .conversation-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }

  .conversation-page .context-pane {
    display: block;
  }

  .chat-actions .button {
    padding-inline: 10px;
  }
}

@media (max-width: 850px) {
  .page-content.conversation-page {
    padding: 0;
  }

  .conversation-page .conversation-layout {
    height: calc(100vh - 78px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .conversation-layout.mobile-list-mode .conversation-list-pane {
    display: grid;
  }

  .conversation-layout.mobile-list-mode .chat-pane {
    display: none;
  }

  .conversation-layout.mobile-chat-mode .conversation-list-pane {
    display: none;
  }

  .conversation-layout.mobile-chat-mode .chat-pane {
    display: grid;
  }

  .mobile-back-conversations {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
  }

  .chat-header {
    flex-wrap: wrap;
    padding: 10px 13px;
  }

  .chat-identity {
    min-width: 0;
  }

  .chat-identity > div:last-child {
    min-width: 0;
  }

  .chat-identity span {
    max-width: 55vw;
  }

  .chat-actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 46px;
  }

  .messages {
    padding: 20px 14px 24px;
  }

  .message {
    max-width: 88%;
  }

  .context-pane {
    width: min(390px, 100%);
  }
}

@media (max-width: 620px) {
  .conversation-list-head {
    min-height: 70px;
  }

  .chat-identity .guest-avatar {
    display: none;
  }

  .chat-identity strong {
    font-size: 1.05rem;
  }

  .chat-identity span {
    max-width: 68vw;
  }

  .chat-actions {
    padding-left: 0;
  }

  .chat-actions .button {
    flex: 1;
  }

  .message {
    max-width: 92%;
  }

  .message-bubble {
    padding: 11px 13px;
    font-size: 0.78rem;
  }

  .composer {
    padding: 10px;
  }

  .composer-locked {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-locked .button {
    width: 100%;
  }
}
