/* Shoug workspace — desktop guide rail and compact mobile introduction. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url(/_next/static/media/ec02b955afda41d2-s.p.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url(/_next/static/media/237c77f1b450eb14-s.p.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url(/_next/static/media/ac74a0d0c993b076-s.p.ttf) format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
:root {
  --shoug-ink: #172b47;
  --shoug-muted: #526071;
  --shoug-coral: #dc2f25;
  --shoug-coral-dark: #b9241b;
  --shoug-blue: #1d5179;
  --shoug-blue-soft: #eff8fd;
  --shoug-sand: #f7f9fc;
  --shoug-line: #d2dae3;
  --shoug-control-line: #83909f;
}
* {
  box-sizing: border-box;
}
html {
  background: #fff;
  scroll-behavior: smooth;
}
body[data-wain-page="shoug"] {
  min-height: 100vh;
  margin: 0;
  color: var(--shoug-ink);
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
body[data-wain-page="shoug"] [hidden] {
  display: none !important;
}
svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  inset-inline-start: max(1rem, env(safe-area-inset-left));
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  background: var(--shoug-ink);
  color: #fff;
}
.shoug-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  padding-block-start: env(safe-area-inset-top);
  border-bottom: 1px solid var(--shoug-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.shoug-header__inner,
.shoug-shell,
.shoug-footer {
  width: min(1248px, calc(100% - 2rem));
  margin-inline: auto;
}
.shoug-header__inner {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.shoug-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  font-weight: 700;
  font-size: 1.2rem;
}
.shoug-brand img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}
.agent-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--shoug-control-line);
  border-radius: 999px;
  background: #fff;
}
.agent-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding-inline: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--shoug-muted);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
.agent-pill img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .agent-pill:hover:not(.agent-pill--active) {
    color: var(--shoug-ink);
    background: var(--shoug-sand);
  }
}
.agent-pill--active {
  background: var(--shoug-ink);
  color: #fff;
}
.center-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .center-link:hover {
    color: var(--shoug-coral-dark);
  }
}
.shoug-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 2.25rem;
  padding-block: 2rem 3.5rem;
}
.shoug-shell:focus {
  outline: none;
}
.shoug-hero {
  position: sticky;
  top: calc(6rem + env(safe-area-inset-top));
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #dce4ed;
  border-radius: 1.6rem;
  background: radial-gradient(ellipse at 90% 0, #e7f3fb, transparent 70%),
    #f8fbfe;
  text-align: start;
  box-shadow: 0 14px 36px rgba(23, 43, 71, 0.06);
}
.shoug-profile {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.65rem;
  margin-block-end: 1rem;
}
.shoug-portrait {
  width: 5rem;
  height: 5rem;
  display: block;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 43, 71, 0.13);
}
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7e3f37;
  font-size: 0.75rem;
  font-weight: 600;
}
.live-dot {
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--shoug-coral);
  box-shadow: 0 0 0 4px rgba(204, 98, 83, 0.11);
}
.eyebrow,
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--shoug-coral-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.shoug-hero h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.35;
}
.hero-subtitle {
  margin: 0.45rem 0 0;
  color: var(--shoug-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.call-card {
  margin-block: 0.9rem 1rem;
  padding-block: 0.8rem;
  border-block: 1px solid rgba(23, 43, 71, 0.1);
}
.call-card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.call-card__text {
  margin: 0.2rem 0 0.6rem;
  color: var(--shoug-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}
.shoug-call {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  color: #fff;
  background: var(--shoug-coral);
  font-size: 0.91rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(169, 67, 56, 0.15);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .shoug-call:hover {
    background: var(--shoug-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(169, 67, 56, 0.2);
  }
}
.shoug-call:active {
  transform: scale(0.985);
}
.prompt-heading {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.quick-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.quick-prompts button {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.5rem;
  text-align: start;
  border: 1px solid var(--shoug-control-line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.quick-prompts svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--shoug-coral-dark);
}
.quick-prompts button[aria-pressed="true"] {
  border-color: var(--shoug-coral-dark);
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .quick-prompts button:hover {
    border-color: #9eb0c2;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 43, 71, 0.06);
  }
}
.hangout-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  margin-block-start: 0.9rem;
  padding-block-start: 0.75rem;
  border-top: 1px solid rgba(23, 43, 71, 0.1);
}
.hangout-link span {
  flex: 1;
  display: grid;
  gap: 0.1rem;
}
.hangout-link b {
  font-size: 0.8rem;
}
.hangout-link small {
  color: var(--shoug-muted);
  font-size: 0.69rem;
}
@media (hover: hover) and (pointer: fine) {
  .hangout-link:hover {
    color: var(--shoug-coral-dark);
  }
}
.shoug-results {
  min-width: 0;
  scroll-margin-top: 7rem;
}
.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 0.4rem 1rem;
}
.workspace-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.4;
}
.workspace-note {
  color: var(--shoug-muted);
  font-size: 0.75rem;
  padding-block-end: 0.25rem;
}
.shoug-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 4.15rem;
  margin: 0;
  padding: 0.45rem;
  padding-inline-start: 1rem;
  border: 1px solid var(--shoug-control-line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 43, 71, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.shoug-search:focus-within {
  border-color: var(--shoug-coral);
  box-shadow: 0 0 0 4px rgba(204, 98, 83, 0.12);
}
.search-icon {
  color: #87919e;
}
.shoug-search input {
  min-width: 0;
  width: 100%;
  height: 3rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--shoug-ink);
  font-size: 1rem;
  text-align: start;
}
.shoug-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.clear-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 0.75rem;
  background: #f3f6f9;
  color: var(--shoug-muted);
}
.search-submit {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-inline: 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--shoug-ink);
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .search-submit:hover {
    background: #294462;
  }
}
.search-help {
  margin: 0.55rem 0.25rem 1.2rem;
  color: var(--shoug-muted);
  font-size: 0.8125rem;
}
.assistant-line {
  display: flex;
  align-items: start;
  gap: 0.65rem;
  margin-block: 0 1.2rem;
}
.assistant-avatar {
  width: 2.5rem;
  height: 2.5rem;
  margin-block-start: 0.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.assistant-bubble {
  max-width: 100%;
  padding: 0.65rem 0.9rem 0.75rem;
  border: 1px solid var(--shoug-line);
  border-radius: 1rem 0.25rem 1rem 1rem;
  background: #f7f9fc;
}
.assistant-name {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--shoug-coral-dark);
  font-size: 0.75rem;
  font-weight: 600;
}
.assistant-line p {
  margin: 0;
  color: #445469;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.assistant-voice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--shoug-control-line);
  border-radius: 999px;
  background: #fff;
  color: var(--shoug-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.assistant-voice svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.assistant-voice[aria-pressed="true"] {
  border-color: var(--shoug-coral);
  background: var(--shoug-coral-soft, #fff1ee);
  color: var(--shoug-coral-dark);
}
.assistant-voice:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--shoug-coral) 35%, transparent);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .assistant-voice:hover { border-color: var(--shoug-coral); transform: translateY(-1px); }
}
.assistant-voice-status {
  display: block;
  min-height: 1.1em;
  margin-top: 0.25rem;
  color: var(--shoug-muted);
  font-size: 0.68rem;
}
.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.6rem;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--shoug-line) transparent;
}
.category-tabs button {
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--shoug-control-line);
  border-radius: 999px;
  background: #fff;
  color: #526071;
  font-size: 0.74rem;
  font-weight: 600;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .category-tabs button:hover {
    border-color: #aab8c7;
    color: var(--shoug-ink);
  }
}
.category-tabs button.is-active {
  border-color: var(--shoug-ink);
  background: var(--shoug-ink);
  color: #fff;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
}
.results-heading .section-kicker {
  display: none;
}
.results-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}
.results-count {
  flex-shrink: 0;
  color: #34465b;
  background: #edf2f7;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.place-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shoug-line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 43, 71, 0.025);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .place-card:hover {
    transform: translateY(-3px);
    border-color: #b8c4d0;
    box-shadow: 0 12px 25px rgba(23, 43, 71, 0.07);
  }
}
.place-card__main {
  min-height: 10.2rem;
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 1rem;
}
.place-card__visual {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  background: #fff0df;
  color: #bb7548;
}
.place-card[data-category="cafes"] .place-card__visual {
  background: #f6e9df;
  color: #a26347;
}
.place-card[data-category="outdoors"] .place-card__visual {
  background: #eaf0f8;
  color: #5076a2;
}
.place-card[data-category="shopping"] .place-card__visual {
  background: #f4e9f0;
  color: #a66382;
}
.place-icon {
  display: grid;
  place-items: center;
}
.place-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  stroke-width: 1.6;
}
.place-card__content {
  min-width: 0;
}
.place-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--shoug-muted);
  font-size: 0.75rem;
}
.place-rating {
  flex-shrink: 0;
  color: #7b5415;
}
.place-name {
  margin: 0.45rem 0 0.4rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.place-tagline {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--shoug-muted);
  font-size: 0.8125rem;
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.place-area {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  color: var(--shoug-muted);
  font-size: 0.75rem;
}
.place-area svg {
  width: 0.85rem;
  height: 0.85rem;
}
.place-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--shoug-line);
}
.place-card__actions a {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-inline: 0.5rem;
  color: #4a5c72;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 0.18s, background 0.18s;
}
.place-card__actions svg {
  width: 0.95rem;
  height: 0.95rem;
}
.place-card__actions a + a {
  border-inline-start: 1px solid var(--shoug-line);
}
@media (hover: hover) and (pointer: fine) {
  .place-card__actions a:hover {
    color: var(--shoug-coral-dark);
    background: #f3f8fc;
  }
}
.place-card a:focus-visible {
  outline-offset: -4px;
}
.place-card:focus-within {
  border-color: var(--shoug-coral);
}
.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed var(--shoug-control-line);
  border-radius: 1.2rem;
  background: #fff;
  text-align: center;
}
.empty-state > span {
  font-size: 2rem;
  color: var(--shoug-coral);
}
.empty-state h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}
.empty-state p {
  margin: 0 0 1rem;
  color: var(--shoug-muted);
  font-size: 0.8rem;
}
.empty-state button {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--shoug-ink);
  color: #fff;
  font-size: 0.8rem;
}
.shoug-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem max(5rem, calc(4rem + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--shoug-line);
  color: var(--shoug-muted);
  font-size: 0.73rem;
}
.shoug-footer > div,
.shoug-footer nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.shoug-footer strong {
  color: var(--shoug-ink);
}
.shoug-footer a {
  min-width: 2.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) and (pointer: fine) {
  .shoug-footer a:hover {
    color: var(--shoug-coral-dark);
  }
}
/* The header supplies the agent switch, so the shared floating copy is redundant. */
body[data-wain-page="shoug"] #wain-agent-switcher {
  display: none !important;
}
:where(a, button, input):focus-visible {
  outline: 3px solid var(--shoug-coral-dark);
  outline-offset: 3px;
}
@media (max-width: 1100px) and (min-width: 901px) {
  .shoug-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
  }
  .shoug-hero {
    padding: 1.3rem;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .shoug-header__inner,
  .shoug-shell,
  .shoug-footer {
    width: min(720px, calc(100% - 1.25rem));
  }
  .shoug-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-block: 1.25rem 2rem;
  }
  .shoug-hero {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1rem;
    padding: 1.2rem;
    border-radius: 1.4rem;
  }
  .shoug-profile {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    align-items: center;
    gap: 0.55rem;
  }
  .shoug-portrait {
    width: 4.7rem;
    height: 4.7rem;
  }
  .profile-status {
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  .shoug-hero__copy {
    grid-column: 1;
    grid-row: 1;
  }
  .shoug-hero h1 {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    margin-top: 0.4rem;
    font-size: 0.8rem;
  }
  .call-card {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .call-card > div {
    display: none;
  }
  .shoug-call {
    width: fit-content;
    min-height: 2.75rem;
    padding-inline: 0.9rem;
    font-size: 0.78rem;
    border-radius: 0.85rem;
  }
  .prompt-section {
    grid-column: 1/-1;
    min-width: 0;
    padding-top: 0.4rem;
  }
  .prompt-heading {
    display: none;
  }
  .quick-prompts {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .quick-prompts::-webkit-scrollbar {
    display: none;
  }
  .quick-prompts button {
    flex-shrink: 0;
    font-size: 0.8125rem;
    padding-inline: 0.75rem;
  }
  .hangout-link {
    display: none;
  }
  .workspace-heading {
    margin-top: 0;
  }
  .workspace-heading h2 {
    font-size: 1.35rem;
  }
  .workspace-heading .section-kicker {
    display: none;
  }
  .workspace-note {
    font-size: 0.75rem;
  }
  .shoug-results {
    scroll-margin-top: 6.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Keep the complete guide rail reachable on short desktop windows. */
@media (min-width: 901px) and (max-height: 900px) {
  .shoug-hero {
    position: static;
  }
}
@media (min-width: 901px) {
  body[data-wain-page="shoug"] #wain-live-places {
    inset-inline-start: auto;
    inset-inline-end: max(14px, env(safe-area-inset-left));
  }
}

/* A small live presence for Shoug. The dot and portrait breathe while she is
   ready, and the assistant bubble shows a short activity signal while a
   query is being understood. Motion is intentionally restrained so the
   results remain the focus. */
@keyframes shoug-live-dot {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(204, 98, 83, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 0.3rem rgba(204, 98, 83, 0.16);
  }
}
@keyframes shoug-presence {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.018);
  }
}
@keyframes shoug-thinking {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(204, 98, 83, 0);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(204, 98, 83, 0.13);
  }
}
@keyframes shoug-thinking-dots {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0.2rem);
  }
  50% {
    opacity: 0.85;
    transform: translateX(0);
  }
}
.live-dot {
  animation: shoug-live-dot 2.4s ease-in-out infinite;
}
.shoug-portrait {
  animation: shoug-presence 5s ease-in-out infinite;
}
body[data-shoug-thinking="true"] .assistant-avatar {
  animation: shoug-thinking 1.35s ease-in-out infinite;
}
body[data-shoug-thinking="true"] .assistant-bubble {
  position: relative;
}
body[data-shoug-thinking="true"] .assistant-bubble::after {
  content: "•••";
  position: absolute;
  inset-inline-end: 0.7rem;
  inset-block-end: 0.35rem;
  color: var(--shoug-coral);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  animation: shoug-thinking-dots 1.1s ease-in-out infinite;
}
.shoug-thinking-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--shoug-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
#results-grid[aria-busy="true"] {
  position: relative;
  min-height: 4rem;
  opacity: 0.78;
  transition: opacity 0.18s ease;
}
#results-grid[aria-busy="true"]::before {
  content: "";
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 50%;
  width: 1.35rem;
  height: 1.35rem;
  border: 0.16rem solid var(--shoug-line);
  border-block-start-color: var(--shoug-coral);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: shoug-loading 0.85s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .shoug-portrait,
  body[data-shoug-thinking="true"] .assistant-avatar,
  body[data-shoug-thinking="true"] .assistant-bubble::after,
  #results-grid[aria-busy="true"]::before {
    animation: none;
  }
  .shoug-portrait {
    transform: none;
  }
}

/* Final surface polish: keep the workspace airy and the controls grounded
   without changing the established coral, sand, and navy palette. */
.shoug-results,
.shoug-hero {
  isolation: isolate;
}
.shoug-search,
.place-card,
.empty-state {
  box-shadow: 0 8px 22px rgba(23, 43, 71, 0.045);
}
.shoug-search:focus-within {
  box-shadow: 0 0 0 4px rgba(204, 98, 83, 0.12),
    0 10px 24px rgba(23, 43, 71, 0.07);
}
.place-card__actions a {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 249, 252, 0.98)
  );
}
@media (hover: hover) and (pointer: fine) {
  .place-card__actions a:hover {
    background: #eef6fb;
  }
}
.results-grid {
  align-items: stretch;
}
.place-card {
  display: flex;
  flex-direction: column;
}
.place-card__main {
  flex: 1;
}

/* The Call Center shares Shoug's workspace and hands the current request to
   Salem or Hangout. Keep this entry visible at every screen size. */
body[data-wain-page="shoug"] {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI",
    Tahoma, sans-serif;
  line-height: 1.65;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.team-panel {
  margin-block-end: 1.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--shoug-line);
  border-radius: 1.25rem;
  background: #fff;
  scroll-margin-top: calc(6rem + env(safe-area-inset-top));
}
.team-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.team-panel h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.5;
}
.team-panel .section-kicker {
  margin-block-end: 0.2rem;
}
.team-panel__intro {
  margin: 0.65rem 0 1rem;
  color: #526071;
  font-size: 0.875rem;
}
.directory-status {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--shoug-ink);
  font-size: 0.75rem;
}
.directory-status[data-state="limited"] {
  background: #fff0e5;
  color: var(--shoug-coral-dark);
}
.team-context {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-inline-start: 3px solid var(--shoug-coral);
  background: var(--shoug-sand);
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  unicode-bidi: plaintext;
}
.team-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.team-actions a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.5rem;
  padding: 0.8rem;
  border: 1px solid var(--shoug-control-line);
  border-radius: 0.9rem;
  transition: border-color 0.18s, background 0.18s;
}
@media (hover: hover) and (pointer: fine) {
  .team-actions a:hover {
    background: var(--shoug-sand);
    border-color: var(--shoug-coral);
  }
}
.team-actions img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
}
.team-actions span {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.team-actions b {
  font-size: 0.875rem;
}
.team-actions small {
  font-size: 0.75rem;
  color: #526071;
}
.team-actions .team-actions__mark {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border-radius: 50%;
  color: var(--shoug-ink);
  background: #edf2f7;
}
.directory-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--shoug-line);
}
.directory-warning p {
  margin: 0;
  flex: 1 1 14rem;
  color: #526071;
  font-size: 0.8rem;
}
.directory-warning button {
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--shoug-control-line);
  border-radius: 0.7rem;
  background: var(--shoug-sand);
  font-size: 0.8rem;
}
.directory-warning button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.assistant-bubble {
  min-width: 0;
}
body[data-shoug-thinking="true"] .assistant-bubble {
  padding-block-end: 1.4rem;
}

/* One mobile rhythm: keep Arabic labels legible and all controls reachable. */
.place-card__topline {
  font-size: 0.75rem;
}
.place-tagline {
  font-size: 0.8125rem;
  line-height: 1.8;
}
.place-area {
  color: var(--shoug-muted);
  font-size: 0.75rem;
}
.place-card__actions a {
  min-height: 3rem;
  font-size: 0.8125rem;
}
.place-card__visual,
.place-card[data-category] .place-card__visual {
  background: #edf2f7;
  color: var(--shoug-ink);
}
.quick-prompts button {
  font-size: 0.8125rem;
}
.search-help {
  font-size: 0.8125rem;
  line-height: 1.7;
}
.assistant-name {
  font-size: 0.75rem;
}
.assistant-line p {
  font-size: 0.875rem;
}
.category-tabs {
  overscroll-behavior-inline: contain;
}
.category-tabs button {
  font-size: 0.8125rem;
}
.results-count {
  font-size: 0.75rem;
}
.team-actions a,
.directory-warning button,
.agent-pill,
.shoug-call,
.search-submit,
.clear-button,
.category-tabs button,
.quick-prompts button,
.place-card__actions a {
  touch-action: manipulation;
}
:where(
    .team-actions a,
    .agent-pill,
    .center-link,
    .shoug-call,
    .search-submit,
    .clear-button,
    .quick-prompts button,
    .category-tabs button,
    .place-card__actions a
  ):focus-visible {
  position: relative;
  z-index: 1;
}
@keyframes shoug-loading {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@media (max-width: 580px) {
  .shoug-header__inner,
  .shoug-shell,
  .shoug-footer {
    width: calc(
      100% - max(0.625rem, env(safe-area-inset-left)) -
        max(0.625rem, env(safe-area-inset-right))
    );
  }
  .shoug-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .shoug-header__inner {
    min-height: 4.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
  }
  .shoug-brand span {
    display: none;
  }
  .shoug-brand img {
    width: 2.2rem;
    height: 2.2rem;
  }
  .center-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .center-link svg {
    display: none;
  }
  .agent-switcher {
    min-width: 0;
    max-width: 100%;
    justify-self: center;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .agent-switcher::-webkit-scrollbar {
    display: none;
  }
  .agent-pill {
    min-height: 2.75rem;
    flex-shrink: 0;
    gap: 0.35rem;
    padding-inline: 0.6rem 0.75rem;
    font-size: 0.8125rem;
  }
  .agent-pill img {
    width: 1.5rem;
    height: 1.5rem;
  }
  .shoug-shell {
    gap: 1.25rem;
    padding-block-start: 1rem;
  }
  .shoug-hero {
    padding: 1rem;
    gap: 0.85rem;
  }
  .eyebrow {
    font-size: 0.75rem;
    margin-block-end: 0.25rem;
  }
  .shoug-hero h1 {
    font-size: 1.5rem;
    line-height: 1.5;
  }
  .hero-subtitle {
    max-width: 28ch;
    font-size: 0.8125rem;
    line-height: 1.8;
  }
  .shoug-profile {
    gap: 0.5rem;
  }
  .shoug-portrait {
    width: 4rem;
    height: 4rem;
    border-width: 3px;
  }
  .profile-status {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .shoug-call {
    font-size: 0.875rem;
  }
  .quick-prompts {
    gap: 0.5rem;
    padding-block: 0.15rem 0.4rem;
  }
  .quick-prompts button {
    min-height: 2.75rem;
  }
  .shoug-results {
    padding-block-end: 1rem;
  }
  .workspace-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin-block-end: 0.85rem;
  }
  .workspace-note {
    max-width: 100%;
    padding-block-end: 0;
    font-size: 0.75rem;
  }
  .shoug-search {
    gap: 0.35rem;
    min-height: 3.9rem;
    padding-inline-start: 0.75rem;
    box-shadow: 0 6px 16px rgba(23, 43, 71, 0.06);
  }
  .shoug-search input {
    font-size: 16px;
  }
  .search-icon {
    width: 1.1rem;
    height: 1.1rem;
  }
  .search-submit {
    min-width: 2.9rem;
    min-height: 2.9rem;
    padding: 0;
  }
  .search-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .clear-button {
    width: 2.75rem;
    height: 2.75rem;
  }
  .search-help {
    margin-block: 0.6rem 1rem;
  }
  .assistant-line {
    gap: 0.5rem;
    margin-block-end: 1rem;
  }
  .assistant-avatar {
    width: 2rem;
    height: 2rem;
  }
  .assistant-bubble {
    padding: 0.65rem 0.8rem;
  }
  .category-tabs {
    margin-block-end: 0.85rem;
    gap: 0.45rem;
    padding-block-end: 0.5rem;
  }
  .category-tabs button {
    padding-inline: 0.85rem;
  }
  .results-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .place-card {
    border-radius: 1rem;
  }
  .place-card__main {
    min-height: 9rem;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }
  .place-card__visual {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
  }
  .place-name {
    font-size: 1rem;
    line-height: 1.65;
  }
  .place-card__actions a {
    min-height: 3.1rem;
  }
  .team-panel {
    margin-block-end: 1.5rem;
  }
  .team-actions {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .team-actions a {
    min-height: 4.25rem;
  }
  .team-panel__intro {
    line-height: 1.8;
  }
  .directory-status {
    font-size: 0.75rem;
  }
  .shoug-footer {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
    padding-block-end: max(3rem, calc(2rem + env(safe-area-inset-bottom)));
  }
  .shoug-footer > div {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }
  .shoug-footer nav {
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
  }
}
@media (max-width: 350px) {
  .agent-pill {
    padding-inline: 0.4rem 0.5rem;
  }
  .agent-pill img {
    width: 1.25rem;
    height: 1.25rem;
  }
  .shoug-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
  .shoug-profile {
    align-items: end;
  }
  .profile-status {
    white-space: normal;
    max-width: 5rem;
  }
}

.shoug-brand {
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  justify-content: center;
}

/* Search comes first; team tools expand when the visitor needs them. */
#shoug-query:placeholder-shown { direction: rtl; text-align: start; }
.shoug-hero .call-card { border-block-end: 0; margin-block-end: 0; }
svg { stroke-width: 1.8; }
.shoug-hero { background: var(--shoug-sand); box-shadow: none; }
.shoug-results > .prompt-section { margin-block: 0 1.25rem; padding: 0; border: 0; }
.shoug-results .prompt-heading { margin-block: 0 .5rem; }
.shoug-results .quick-prompts { display: flex; flex-wrap: wrap; gap: .5rem; overflow: visible; }
.shoug-results .quick-prompts button { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .8rem; border-radius: .8rem; }
.shoug-results .quick-prompts svg { width: 1.1rem; height: 1.1rem; color: var(--shoug-ink); }
.team-panel { padding: 0 1rem; margin-block-end: 1rem; border-radius: 1rem; }
.team-panel > summary { min-height: 3.5rem; cursor: pointer; list-style: none; flex-wrap: nowrap; font-size: .875rem; }
.team-panel > summary::-webkit-details-marker { display: none; }
.team-summary-label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.team-summary-label svg, .team-chevron { width: 1.1rem; height: 1.1rem; }
.team-chevron { margin-inline-start: auto; transition: transform .18s; }
.team-panel[open] { padding-block-end: 1rem; }
.team-panel[open] .team-chevron { transform: rotate(180deg); }
.team-panel summary .directory-status { margin-inline-start: auto; white-space: nowrap; font-size: .75rem; }
.team-panel summary .team-chevron { margin-inline-start: 0; }
.directory-warning { margin-block: 0 1rem; padding: 1rem; border: 1px solid var(--shoug-line); border-radius: 1rem; background: var(--shoug-sand); }
.results-more { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; width: 100%; margin-block-start: 1rem; border: 1px solid var(--shoug-control-line); border-radius: .9rem; background: #fff; color: var(--shoug-ink); font-weight: 600; }
.results-more svg { width: 1rem; height: 1rem; }
.empty-icon { width: 2rem; height: 2rem; color: var(--shoug-ink); margin-inline: auto; }
.team-panel summary:focus-visible, .results-more:focus-visible { outline: 2px solid #2473a6; outline-offset: 3px; }
.live-dot { animation: none; }
.profile-status { color: var(--shoug-muted); }
.place-card__visual, .place-card[data-category] .place-card__visual { background: #eef6fb; color: #1d5278; }
.place-card { box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .results-more:hover, .team-panel > summary:hover { color: #1d5278; }
}
@media (max-width: 900px) {
  .shoug-hero > .hangout-link { display: none; }
  .shoug-hero { padding: 1rem; gap: .65rem 1rem; }
  .shoug-profile { grid-row: 1 / 3; }
  .shoug-portrait { width: 3.75rem; height: 3.75rem; }
  .shoug-hero h1 { font-size: 1.4rem; }
  .shoug-hero .eyebrow { display: none; }
  .shoug-results .quick-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shoug-results .quick-prompts button { justify-content: center; padding-inline: .4rem; font-size: .75rem; }
  .workspace-note { display: none; }
  .team-panel > summary { flex-wrap: wrap; gap: .5rem; padding-block: .65rem; }
  .team-panel summary .directory-status { margin-inline-start: 0; }
  .team-panel summary .team-chevron { margin-inline-start: auto; }
}
@media (max-width: 350px) {
  .shoug-results .quick-prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .team-chevron { transition: none; }
}

/* Shared Wain rhythm: white surfaces, blue selection, red call action.
   Keep quiet controls readable in their selected, hover and focus states. */
.assistant-bubble {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.quick-prompts button,
.team-actions a,
.results-more {
  border-color: transparent;
  border-radius: 0.75rem;
  background: transparent;
  box-shadow: none;
}
.shoug-results .quick-prompts button {
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border-color: var(--shoug-line);
  background: #fff;
  color: var(--shoug-ink);
  font-size: .8125rem;
  line-height: 1.6;
}
.quick-prompts svg,
.team-actions .team-actions__mark,
.team-summary-label > svg {
  display: none;
}
.category-tabs {
  gap: .5rem;
  padding-block: .25rem .75rem;
  margin-block-end: .75rem;
  border-block-end: 1px solid var(--shoug-line);
}
.category-tabs button {
  min-height: 2.75rem;
  padding-inline: .875rem;
  border-color: transparent;
  border-radius: .75rem;
  background: transparent;
  color: var(--shoug-muted);
  font-size: .8125rem;
}
.category-tabs button.is-active,
.shoug-results .quick-prompts button[aria-pressed="true"] {
  border-color: var(--shoug-blue);
  background: var(--shoug-blue-soft);
  color: var(--shoug-blue);
}
.team-panel,
.directory-warning {
  border-radius: .875rem;
}
.place-card {
  border-radius: 1rem;
}
.place-rating { color: var(--shoug-blue); }
.place-name { font-size: 1rem; }
.place-card__actions a { background: #fff; }
.shoug-portrait { box-shadow: none; }
.shoug-search {
  min-height: 3.5rem;
  padding-block: .375rem;
  border-radius: 1rem;
  box-shadow: none;
}
.shoug-search input { height: 2.75rem; }
.search-submit { min-height: 2.75rem; background: var(--shoug-blue); }
.shoug-search:focus-within {
  border-color: var(--shoug-blue);
  box-shadow: 0 0 0 3px #daeefa;
}
.shoug-results > .prompt-section { margin-block-end: 1rem; }
.assistant-line { margin-block-end: 1rem; }
.assistant-voice { min-height: 2.75rem; font-weight: 600; }
.assistant-voice-status:empty { display: none; }
.team-panel summary .directory-status {
  background: transparent;
  color: var(--shoug-muted);
  padding: 0;
}
.results-heading h2 { font-size: 1.25rem; line-height: 1.5; }
.shoug-footer { font-size: .8125rem; }
@media (hover: hover) and (pointer: fine) {
  .category-tabs button:hover,
  .shoug-results .quick-prompts button:hover,
  .results-more:hover {
    background: var(--shoug-blue-soft);
    color: var(--shoug-blue);
    box-shadow: none;
  }
  .place-card:hover { transform: translateY(-1px); }
}
@media (max-width: 900px) {
  .shoug-header__inner,
  .shoug-shell,
  .shoug-footer {
    width: min(720px, calc(100% - max(1rem, env(safe-area-inset-left)) - max(1rem, env(safe-area-inset-right))));
  }
  .shoug-shell { gap: 1.5rem; }
  .shoug-hero { border-radius: 1rem; }
  .shoug-results .quick-prompts {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .5rem;
    padding-block: .25rem;
    scrollbar-width: thin;
    scroll-padding-inline: .25rem;
  }
  .shoug-results .quick-prompts button { flex: 0 0 auto; }
  .search-help { margin-block: .5rem .75rem; }
  .team-panel > summary { min-height: 3rem; }
  .team-panel summary .directory-status { display: none; }
  .team-panel[open] summary .directory-status { display: inline; }
  .place-card__main { min-height: 8rem; }
}
@media (max-width: 350px) {
  .shoug-header__inner { gap: .25rem; }
  .center-link { font-size: .6875rem; }
  .shoug-brand img { width: 1.75rem; height: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .place-card:hover { transform: none; }
}
