.sagace-orientation-results[hidden] { display: none !important; }
.sagace-orientation-results {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d8e5f5;
  border-radius: 19px;
  color: #10213d;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, .13), transparent 34%),
    linear-gradient(145deg, #f9fcff 0%, #f3f8ff 100%);
  box-shadow: 0 18px 44px -34px rgba(16, 51, 100, .42), inset 0 1px 0 #fff;
  animation: sagace-orientation-results-in .28s ease-out both;
  box-sizing: border-box;
}
.sagace-orientation-results::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2477ed, #38bdf8 52%, #16a394);
}
.sagace-orientation-result-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.sagace-orientation-result-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #bbd5fb;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2477ed, #156d9c);
  box-shadow: 0 10px 22px -12px rgba(36, 119, 237, .8);
  font-size: 18px;
  font-weight: 900;
}
.sagace-orientation-result-copy { min-width: 0; }
.sagace-orientation-result-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #2477ed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sagace-orientation-loading,
.sagace-orientation-error { margin: 0 0 10px; font-weight: 800; }
.sagace-orientation-result-title {
  margin: 0;
  color: #0d2447;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -.015em;
}
.sagace-orientation-result-detail {
  margin: 4px 0 0;
  color: #60738d;
  font-size: 12px;
  line-height: 1.45;
}
.sagace-orientation-loading { color: #174b91; }
.sagace-orientation-loading::before {
  content: '';
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-right: 8px;
  border: 2px solid #b8cbed;
  border-top-color: #2477ed;
  border-radius: 50%;
  animation: sagace-orientation-spin .8s linear infinite;
}
@keyframes sagace-orientation-spin { to { transform: rotate(360deg); } }
.sagace-orientation-candidates { display: grid; gap: 11px; }
.sagace-orientation-card {
  --sagace-agent-color: #2477ed;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  overflow: hidden;
  padding: 15px 16px 16px;
  border: 1px solid #dbe5f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px -30px rgba(12, 47, 99, .62);
  isolation: isolate;
  animation: sagace-orientation-card-in .32s ease-out both;
  animation-delay: calc(var(--sagace-card-index, 0) * 70ms);
  box-sizing: border-box;
}
.sagace-orientation-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sagace-agent-color);
}
.sagace-orientation-card::after {
  content: '';
  position: absolute;
  z-index: -2;
  top: -80px;
  right: -65px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sagace-agent-color) 8%, transparent);
}
.sagace-orientation-card.is-primary {
  border-color: color-mix(in srgb, var(--sagace-agent-color) 38%, #dbe5f2);
  background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--sagace-agent-color) 4%, #fff) 100%);
  box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--sagace-agent-color) 55%, #173a5d);
}
.sagace-orientation-card-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sagace-orientation-choice,
.sagace-orientation-universe {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.sagace-orientation-choice { color: #5f7189; background: #f0f4f9; }
.sagace-orientation-card.is-primary .sagace-orientation-choice {
  color: color-mix(in srgb, var(--sagace-agent-color) 82%, #10213d);
  background: color-mix(in srgb, var(--sagace-agent-color) 10%, #fff);
}
.sagace-orientation-universe { color: #3d5878; border: 1px solid #dce6f2; background: rgba(255,255,255,.82); }
.sagace-orientation-card-body { min-width: 0; }
.sagace-orientation-agent { display: flex; align-items: center; gap: 11px; }
.sagace-orientation-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--sagace-agent-color), #173a5d);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sagace-agent-color) 32%, #dce6f2), 0 10px 22px -14px rgba(12,47,99,.8);
}
.sagace-orientation-avatar-fallback { font-size: 14px; font-weight: 900; letter-spacing: -.02em; }
.sagace-orientation-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.sagace-orientation-agent-copy { display: flex; min-width: 0; flex-direction: column; }
.sagace-orientation-agent-label { color: #71839a; font-size: 9.5px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sagace-orientation-agent-name { margin-top: 1px; color: #10213d; font-size: 14px; font-weight: 900; line-height: 1.2; }
.sagace-orientation-agent-role { display: block; margin-top: 2px; overflow: hidden; color: #60738d; font-size: 10.5px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sagace-orientation-service { margin-top: 12px; padding-top: 11px; border-top: 1px solid #e8eef6; }
.sagace-orientation-card-title { margin: 0; color: #0d2447; font-size: 15.5px; font-weight: 900; line-height: 1.3; letter-spacing: -.012em; }
.sagace-orientation-promise { margin: 5px 0 0; color: #536681; font-size: 12.5px; line-height: 1.48; }
.sagace-orientation-open,
.sagace-orientation-chat,
.sagace-orientation-link {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.sagace-orientation-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #173a6d, color-mix(in srgb, var(--sagace-agent-color) 72%, #0f6f82));
  box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--sagace-agent-color) 65%, #173a5d);
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.sagace-orientation-open:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--sagace-agent-color) 78%, #173a5d); }
.sagace-orientation-open-arrow { font-size: 16px; line-height: 1; transition: transform .16s ease; }
.sagace-orientation-open:hover .sagace-orientation-open-arrow { transform: translateX(2px); }
.sagace-orientation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.sagace-orientation-link,
.sagace-orientation-chat { min-height: 36px; margin: 0; padding: 0 11px; border-radius: 10px; font-size: 11px; font-weight: 850; }
.sagace-orientation-link { color: #31557e; border: 1px solid #d7e2ef; background: rgba(255,255,255,.76); }
.sagace-orientation-chat { color: #174b91; background: #e9f3ff; }
.sagace-orientation-link:hover,
.sagace-orientation-chat:hover { background: #fff; box-shadow: 0 8px 18px -15px rgba(23,75,145,.8); }
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-link {
  color: #31557e !important;
  -webkit-text-fill-color: #31557e !important;
  text-decoration: none !important;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-link:hover,
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-link:focus-visible {
  color: #173a5d !important;
  -webkit-text-fill-color: #173a5d !important;
  border-color: #b9cde4 !important;
  background: #eef6ff !important;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-link:focus-visible {
  outline: 3px solid #2477ed !important;
  outline-offset: 2px !important;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-link:active {
  color: #173a5d !important;
  -webkit-text-fill-color: #173a5d !important;
  background: #e1efff !important;
}
.sagace-orientation-help { margin: 0; padding: 11px 12px; border: 1px solid #dfe8f3; border-radius: 12px; color: #5c6f88; background: rgba(255,255,255,.72); font-size: 12.5px; line-height: 1.48; }
.sagace-orientation-error { color: #9a3412; }
.sagace-orientation-auto {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 6px 10px;
  align-items: center;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 13px;
  color: #31557e;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}
.sagace-orientation-auto-icon { color: #2477ed; font-size: 14px; }
.sagace-orientation-auto-text { color: #173a5d; line-height: 1.35; }
.sagace-orientation-auto-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #bfd4ef;
  border-radius: 999px;
  color: #174b91;
  background: #edf5ff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel {
  appearance: none;
  min-height: 38px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #e8a9b8;
  border-radius: 10px;
  color: #9f1239 !important;
  -webkit-text-fill-color: #9f1239 !important;
  background: #fff1f3 !important;
  box-shadow: 0 8px 18px -16px rgba(159,18,57,.9);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel:hover,
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #9f1239 !important;
  background: #9f1239 !important;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel:focus-visible {
  outline: 3px solid #9f1239 !important;
  outline-offset: 2px !important;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel.is-confirmed {
  color: #166534 !important;
  -webkit-text-fill-color: #166534 !important;
  border-color: #a7d8b4 !important;
  background: #ecfdf3 !important;
  cursor: default;
}
#sagace-home-v4 .sagace-orientation-results button.sagace-orientation-cancel.is-confirmed:focus-visible {
  outline-color: #166534 !important;
}
.sagace-orientation-auto.is-cancelled { border-color: #b8ddc1; background: #f3fff6; }
.sagace-orientation-auto-countdown.is-cancelled { color: #166534; border-color: #b8ddc1; background: #e8f8ed; }
.sagace-orientation-auto-rail { grid-column: 1 / -1; display: block; height: 4px; margin-top: 2px; overflow: hidden; border-radius: 99px; background: #dfe9f5; }
.sagace-orientation-auto-progress { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2477ed,#16a394); transform-origin: left; animation: sagace-orientation-opening var(--sagace-opening-delay, 4000ms) linear forwards; }
.sagace-orientation-auto.is-cancelled .sagace-orientation-auto-progress { animation: none; transform: scaleX(1); background: #57a86b; }
.sagace-orientation-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes sagace-orientation-results-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sagace-orientation-card-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sagace-orientation-opening { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sagace-orientation-safety { padding: 14px; border: 2px solid #e38339; border-radius: 14px; background: #fff8eb; }
.sagace-orientation-safety h3 { margin: 0 0 6px; font-size: 17px; color: #6f2f0c; }
.sagace-orientation-safety p { margin: 0 0 10px; line-height: 1.5; }
.sagace-orientation-safety-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sagace-orientation-safety-actions a { padding: 9px 12px; border-radius: 10px; color: #71370e; background: #ffe6c2; font-weight: 900; text-decoration: none; }
.sagace-orientation-safety-actions a.is-primary { color: #fff; background: #a53d13; }
.sagace-orientation-source { display: inline-block; margin-top: 10px; color: #6d4b2a; font-size: 11px; }
.intent-chips button {
  appearance: none;
  font: inherit;
  cursor: pointer;
}
.sagace-orientation-open:focus-visible,
.sagace-orientation-chat:focus-visible,
.sagace-orientation-link:focus-visible,
.intent-chips button:focus-visible { outline: 3px solid rgba(38, 119, 237, .35); outline-offset: 2px; }
@media (max-width: 700px) {
  .sagace-orientation-results { padding: 14px; border-radius: 16px; }
  .sagace-orientation-card { grid-template-columns: 1fr; }
  .sagace-orientation-open { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 2px; }
  .sagace-orientation-auto { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sagace-orientation-cancel { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 430px) {
  .sagace-orientation-result-head { gap: 9px; }
  .sagace-orientation-result-mark { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .sagace-orientation-card { padding: 13px 13px 14px; }
  .sagace-orientation-card-top { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sagace-orientation-avatar { flex-basis: 50px; width: 50px; height: 50px; }
  .sagace-orientation-agent-role { white-space: normal; }
  .sagace-orientation-actions > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sagace-orientation-results,
  .sagace-orientation-card,
  .sagace-orientation-loading::before,
  .sagace-orientation-auto-progress { animation: none; }
  .sagace-orientation-open,
  .sagace-orientation-open-arrow { transition: none; }
  .sagace-orientation-auto-rail { display: none; }
}
