/* Greenways agent team strip + handoff brief */
.guide-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.gw-team-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.gw-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.gw-team-member.is-active {
  cursor: default;
  pointer-events: none;
}

.gw-team-face {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.82;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.gw-team-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.gw-team-face.is-active {
  opacity: 1;
  border-color: var(--accent-lt, #60a5fa);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

.gw-team-name {
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  max-width: 52px;
  color: var(--muted, #8b9bb8);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gw-team-member:hover .gw-team-name,
.gw-team-member.is-active .gw-team-name {
  color: var(--text, #e8edf8);
}

.gw-team-member:hover .gw-team-face {
  opacity: 1;
  transform: translateY(-1px);
}

.gw-team-member.is-active .gw-team-face {
  opacity: 1;
  border-color: var(--accent-lt, #60a5fa);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

.gw-team-strip-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #8b9bb8);
  margin-right: 2px;
  white-space: nowrap;
  align-self: center;
  padding-bottom: 2px;
}

.gw-team-member.is-staff .gw-team-face {
  border-color: rgba(245, 158, 11, 0.35);
}

.gw-team-member.is-staff.is-active .gw-team-face {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.gw-team-staff-badge {
  display: block;
  font-size: 0.42rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf24;
  line-height: 1.1;
  margin-top: 1px;
}

.gw-handoff-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(40, 167, 69, 0.35);
  background: rgba(40, 167, 69, 0.1);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text, #e8edf8);
}

.gw-handoff-banner strong {
  color: var(--accent-lt, #6ee7a8);
}

.gw-handoff-banner-q {
  display: block;
  margin-top: 4px;
  color: var(--muted, #8b9bb8);
  font-style: italic;
}

@media (max-width: 720px) {
  .gw-team-strip-label { display: none; }
  .gw-team-face { width: 32px; height: 32px; }
  .gw-team-name { font-size: 0.48rem; max-width: 44px; }
}

/* Journey summary — cross-agent visit ledger */
.gw-journey-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid rgba(201, 169, 97, 0.55);
  background: rgba(201, 169, 97, 0.12);
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.gw-journey-btn:hover {
  background: rgba(201, 169, 97, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.25);
}

.gw-journey-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(201, 169, 97, 0.85);
  color: #1a1208;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.gw-journey-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gw-journey-modal[hidden] {
  display: none;
}

.gw-journey-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.gw-journey-modal-panel {
  position: relative;
  width: min(880px, 96vw);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  background: linear-gradient(160deg, #0e1520 0%, #0a1018 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.gw-journey-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gw-journey-modal-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.gw-journey-modal-sub {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #94a3b8;
}

.gw-journey-modal-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.gw-journey-modal-body {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
  -webkit-overflow-scrolling: touch;
}

.gw-journey-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gw-journey-btn-primary,
.gw-journey-btn-secondary {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.gw-journey-btn-primary {
  border: 1px solid rgba(201, 169, 97, 0.55);
  background: rgba(201, 169, 97, 0.2);
  color: #fde68a;
}

.gw-journey-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.gw-journey-btn-primary:hover,
.gw-journey-btn-secondary:hover {
  transform: translateY(-1px);
}

.gw-journey-empty {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
  padding: 24px 12px;
}

.gw-journey-card {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(75, 140, 104, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

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

.gw-journey-portrait {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 2px solid rgba(75, 140, 104, 0.35);
  flex-shrink: 0;
}

.gw-journey-card-meta {
  flex: 1;
  min-width: 0;
}

.gw-journey-agent {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.gw-journey-time {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  margin-top: 2px;
}

.gw-journey-open {
  font-size: 0.64rem;
  font-weight: 600;
  color: #86efac;
  text-decoration: none;
  white-space: nowrap;
}

.gw-journey-open:hover {
  text-decoration: underline;
}

.gw-journey-q {
  font-size: 0.72rem;
  font-style: italic;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1.4;
}

.gw-journey-summary {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.gw-journey-highlights {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #86efac;
}

.gw-journey-highlights a,
.gw-journey-highlights .gw-journey-highlight-link {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.gw-journey-highlights a:hover,
.gw-journey-highlights .gw-journey-highlight-link:hover {
  text-decoration: underline;
}

.gw-journey-inline {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 97, 0.28);
  background: linear-gradient(160deg, rgba(14, 33, 23, 0.55), rgba(15, 23, 42, 0.65));
}

.gw-journey-inline--empty {
  border-color: rgba(75, 140, 104, 0.22);
}

.gw-journey-inline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gw-journey-inline-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.gw-journey-inline-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: #c9a961;
}

.gw-journey-inline-lede {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 14px;
}

.gw-journey-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gw-journey-inline .gw-journey-card:last-child {
  margin-bottom: 0;
}

.gw-journey-plan {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 97, 0.4);
  background: linear-gradient(160deg, rgba(201, 169, 97, 0.12), rgba(15, 23, 42, 0.5));
}

.gw-journey-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gw-journey-plan-head h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fde68a;
}

.gw-journey-plan-source {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gw-journey-plan-body {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.gw-journey-plan-body strong {
  color: #fff;
}

.gw-journey-plan-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gw-journey-modal-foot {
  align-items: center;
}

.gw-journey-modal-foot .gw-journey-plan-btn {
  margin-right: auto;
}

@media (max-width: 720px) {
  .gw-journey-btn-label { display: none; }
  .gw-journey-btn { padding: 7px 10px; }
}

.gw-team-eval-lede {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.gw-team-eval-lanes {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gw-team-eval-lane {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(75, 140, 104, 0.22);
  background: rgba(10, 16, 24, 0.65);
}

.gw-team-eval-lane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gw-team-eval-portrait {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 97, 0.35);
}

.gw-team-eval-lane-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gw-team-eval-lane-meta strong {
  font-size: 0.82rem;
  color: #fff;
}

.gw-team-eval-lane-meta span {
  font-size: 0.68rem;
  color: #94a3b8;
}

.gw-team-eval-open {
  font-size: 0.68rem;
  font-weight: 600;
  color: #86efac;
  text-decoration: none;
  white-space: nowrap;
}

.gw-team-eval-open:hover { text-decoration: underline; }

.gw-team-eval-summary {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.gw-team-eval-highlights {
  margin-top: 8px;
  padding-left: 16px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.gw-team-eval-highlights a,
.gw-team-eval-highlights .gw-journey-highlight-link {
  color: #86efac;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.gw-team-eval-highlights a:hover,
.gw-team-eval-highlights .gw-journey-highlight-link:hover { text-decoration: underline; }
