.party-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.party-event {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}
.party-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.party-event-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.party-event.kind-avr_verdict .party-event-icon {
  background: #ffedd5;
  color: #c2410c;
}
.party-event.kind-ticket .party-event-icon {
  background: #e0f2fe;
  color: #0369a1;
}
.party-event-body {
  min-width: 0;
  flex: 1;
}
.party-requests {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.party-request {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
a.party-request:hover {
  background: #f0fdfa;
  border-color: rgba(15, 118, 110, 0.35);
}
.party-request-main {
  min-width: 0;
}
.party-request-meta {
  text-align: right;
  flex-shrink: 0;
}
.party-agent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
}
.party-agent-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  cursor: grab;
  touch-action: none;
}
.party-agent-fab:hover {
  background: #0d9488;
  color: #fff;
}
.party-agent-panel {
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 90px));
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.party-agent-hint {
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.45;
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid rgba(194, 65, 12, 0.16);
}
.party-agent-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.party-agent-head-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.party-agent-drag {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0 2px;
  margin: -2px 0 0;
  cursor: grab;
  touch-action: none;
  line-height: 1;
  font-size: 18px;
}
.party-agent-drag:hover,
.party-agent-drag:focus {
  color: #0f766e;
}
.party-agent.is-dragging,
.party-agent.is-dragging .party-agent-head,
.party-agent.is-dragging .party-agent-drag,
.party-agent.is-dragging .party-agent-fab {
  cursor: grabbing;
}
.party-agent.is-dragging .party-agent-panel {
  opacity: 0.96;
}
.party-agent-actions {
  display: flex;
  gap: 2px;
}
.party-agent-log {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
.party-agent-empty {
  margin: auto;
  text-align: center;
  max-width: 260px;
  font-size: 13px;
}
.party-agent-msg {
  max-width: 100%;
}
.party-agent-msg-user {
  align-self: flex-end;
}
.party-agent-bubble {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.party-agent-msg-user .party-agent-bubble {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
.party-agent-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  align-items: end;
}
.party-agent-charts {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.party-agent-chart {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 12px;
  padding: 8px;
  height: 180px;
}
.party-agent-chart-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.party-agent-dots::after {
  content: "…";
  animation: party-agent-dots 1.2s steps(4, end) infinite;
}
@keyframes party-agent-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

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

.party-photo-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.party-photo-card img,
.party-dupe-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
}

.party-dupe-img {
  height: 280px;
  border-radius: 0;
}

.party-photo-card span {
  color: #64748b;
  font-size: 0.82rem;
}

.party-import-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
