html.is-party-mode,
html.is-party-mode body {
  background: #f4f8f6;
  margin: 0;
  min-height: 100%;
}

html.is-party-mode body > .app,
html.is-party-mode #contentV2,
html.is-party-mode .access-gate,
html.is-party-mode .toast {
  display: none !important;
}

.party-shell {
  min-height: 100svh;
  box-sizing: border-box;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  font-family: Tajawal, Arial, sans-serif;
  direction: rtl;
  color: #173d35;
  max-width: 100%;
  overflow-x: hidden;
}

.party-brand {
  text-align: center;
  margin-bottom: 12px;
}

.party-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.party-office {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #087064;
}

.party-card {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 20px;
  padding: 16px;
}

.party-card h1 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #087064;
}

.party-photos {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.party-photo {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  background: #eaf5f1;
}

.party-photo.is-hero {
  max-height: 240px;
}

.party-no-photos {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #8a9691;
}

.party-client-status {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #087064;
}

.party-location-wrap {
  margin: 10px 0 0;
}

.party-location {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  background: #eaf5f1;
  color: #087064;
  font: 800 15px Tajawal, Arial, sans-serif;
  text-decoration: none;
}

.party-prompt {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #173d35;
}

.party-revealed {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eaf5f1;
}

.party-revealed p {
  margin: 0;
  color: #687c76;
  font-size: 12px;
  font-weight: 700;
}

.party-revealed strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.party-reply-card {
  margin-top: 12px;
}

.party-followup {
  margin-top: 10px;
}

.party-followup .party-action {
  background: #fff;
  color: #087064;
  border: 1.5px solid #128c7e;
}

.party-followup-choice {
  margin: 8px 0 0;
  font-weight: 800;
  color: #173d35;
}

.party-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 14px;
  min-width: 0;
}

.party-row span {
  color: #687c76;
  font-weight: 600;
  flex: 0 0 auto;
}

.party-row strong {
  font-weight: 800;
  text-align: left;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.party-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.party-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #128c7e;
  color: #fff;
  font: 800 16px Tajawal, Arial, sans-serif;
  cursor: pointer;
}

.party-action:nth-child(2),
.party-action:nth-child(3) {
  background: #fff;
  color: #087064;
  border: 1.5px solid #128c7e;
}

.party-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.party-recorded,
.party-reply {
  margin: 12px 0 0;
  font-weight: 800;
  color: #087064;
}

.party-muted,
.party-error {
  margin: 0;
  line-height: 1.7;
}

.party-error {
  color: #9e3434;
  font-weight: 700;
}

.party-appointment {
  display: grid;
  gap: 8px;
}

.party-appointment .party-prompt {
  margin-bottom: 4px;
}

.party-status {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.party-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #687c76;
}

.party-status.is-error {
  color: #9e3434;
}
