/* Owner portal → Guest Questions (public/host-questions.js), 2026-11-07: Moataz's approved design.
   Navy #08243A/#092940/#203D4E/#10283D, gold #C7A250 (gradient #E0B755 → #B98412), page #F5F7F9, cards #FFF,
   text #172536/#64748B, lines #E0E5EB, new #DC2626, answered #16A34A, soft gold #FFF6E6.
   Sides are logical (start/end) so Arabic mirrors English. */
.gq {
  --gq-navy: var(--os-header, #1F3B4D); --gq-navy-2: var(--os-side, #1A3446); --gq-navy-3: #203D4E; --gq-deep: #10283D;
  --gq-gold: #C7A250; --gq-gold-a: #E0B755; --gq-gold-b: #B98412; --gq-gold-ink: #7A5410;
  --gq-bg: #F5F7F9; --gq-card: #FFFFFF; --gq-ink: #172536; --gq-muted: #64748B; --gq-line: #E0E5EB;
  --gq-new: #DC2626; --gq-ok: #16A34A; --gq-soft: #FFF6E6; --gq-guest: #F1F3F6;
  --gq-shadow: 0 1px 2px rgba(16, 40, 61, .05), 0 8px 24px rgba(16, 40, 61, .07);
  color: var(--gq-ink); display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.gq [hidden] { display: none !important; }
.gq *, .gq *::before, .gq *::after { box-sizing: border-box; }
.gq-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gq-ic-xs { width: 14px; height: 14px; }
.gq-ic-sm { width: 17px; height: 17px; }
:root[dir="rtl"] .gq-dir { transform: scaleX(-1); }
.gq .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gq button { font: inherit; }
/* All headings use the page's sans text, like the owner shell and the other owner pages. */
.gq h1, .gq h2, .gq h3 { font-family: inherit; letter-spacing: 0; }
.gq :focus-visible { outline: 3px solid rgba(199, 162, 80, .55); outline-offset: 2px; }

/* ---- hero: his towers-and-turquoise photo with the navy overlay on the text side ---- */
.gq-hero {
  position: relative; min-height: 150px; border-radius: 18px; overflow: hidden; display: flex; align-items: center;
  padding: 26px 32px; color: #fff; background-color: var(--gq-navy);
  background-image: linear-gradient(90deg, rgba(8, 36, 58, .94) 0%, rgba(8, 36, 58, .8) 36%, rgba(8, 36, 58, .25) 60%, rgba(8, 36, 58, 0) 76%), url('/img/home/partner-pool.webp');
  background-size: cover; background-position: center 58%;
  box-shadow: var(--gq-shadow);
}
:root[dir="rtl"] .gq-hero { background-image: linear-gradient(270deg, rgba(8, 36, 58, .94) 0%, rgba(8, 36, 58, .8) 36%, rgba(8, 36, 58, .25) 60%, rgba(8, 36, 58, 0) 76%), url('/img/home/partner-pool.webp'); }
.gq-hero-text { max-width: 620px; }
.gq-hero h1 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
:root[dir="rtl"] .gq-hero h1 { letter-spacing: 0; }
.gq-hero-ic { width: 46px; height: 46px; padding: 9px; border-radius: 50%; color: var(--gq-gold-a); background: rgba(224, 183, 85, .14); border: 1.5px solid rgba(224, 183, 85, .7); stroke-width: 1.7; }
.gq-hero p { margin: 10px 0 0; font-size: 1.12rem; text-shadow: 0 1px 6px rgba(4, 24, 42, .45); line-height: 1.6; color: rgba(255, 255, 255, .92); }

/* Inside the owner shell (public/owner-shell.css): the hero runs edge to edge under the header and the
   verification card overlaps its lower edge, as in the design; everything else keeps a 22px margin. */
body.os-route .gq { padding: 0 22px 32px; }
body.os-route .gq-hero { margin-inline: -22px; border-radius: 0; min-height: 150px; box-shadow: none; align-items: flex-start; padding-top: 22px; }
body.os-route .gq-hero:has(+ .gq-verify) { padding-bottom: 40px; }
body.os-route .gq-hero + .gq-verify { position: relative; z-index: 1; margin-top: -48px; }
/* Spacing below the 72px owner header, measured against the mockup at 1536x1024. */
body.os-route .gq:not(.is-narrow) .gq-toolbar { margin-top: 14px; }
body.os-route .gq:not(.is-narrow) .gq-tab { min-height: 48px; }
body.os-route .gq:not(.is-narrow) .gq-work { margin-top: 4px; height: clamp(540px, calc(100vh - 420px), 860px);height: clamp(540px, calc(100dvh - 420px), 860px); }

/* ---- verification reminder ---- */
.gq-verify {
  display: flex; align-items: center; gap: 16px; padding: 21px 24px; border-radius: 16px;
  background: linear-gradient(180deg, #FFFBF2 0%, var(--gq-soft) 100%); border: 1px solid #F1DDB0; box-shadow: var(--gq-shadow);
}
.gq-verify-badge { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; color: #fff; background: linear-gradient(160deg, var(--gq-gold-a), var(--gq-gold-b)); box-shadow: 0 6px 14px rgba(185, 132, 18, .28); }
.gq-verify-badge .gq-ic { width: 28px; height: 28px; stroke-width: 2; }
.gq-verify-text { flex: 1; min-width: 0; }
.gq-verify h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--gq-ink); }
.gq-verify p { margin: 4px 0 0; color: var(--gq-muted); font-size: .95rem; line-height: 1.55; }
.gq-btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; min-width: 230px; padding: 0 24px; border: 0; border-radius: 12px; flex: none; font-size: 1.05rem;
  background: linear-gradient(180deg, var(--gq-gold-a), var(--gq-gold-b)); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(185, 132, 18, .3); cursor: pointer; transition: filter .15s, transform .15s;
}
.gq-btn-gold:hover { filter: brightness(1.05); color: #fff; }
.gq-btn-gold:active { transform: translateY(1px); }
.gq-btn-line {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--gq-gold); border-radius: 999px;
  background: #fff; color: var(--gq-ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.gq-btn-line .gq-ic { color: var(--gq-gold-b); }
.gq-btn-line:hover { background: var(--gq-soft); color: var(--gq-ink); }

/* ---- filters ---- */
.gq-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gq-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.gq-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--gq-line);
  background: #fff; color: var(--gq-ink); font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 40, 61, .04); transition: background .15s, border-color .15s;
}
.gq-tab:hover { border-color: #CBD3DC; }
.gq-tab .gq-ic { width: 18px; height: 18px; }
.gq-tab-new .gq-ic { color: var(--gq-new); fill: var(--gq-new); stroke: none; width: 14px; height: 14px; }
.gq-tab-answered .gq-ic { color: #fff; fill: var(--gq-ok); stroke: #fff; }
.gq-tab-n { color: var(--gq-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.gq-tab[aria-selected="true"] { background: linear-gradient(180deg, #D6AE55, var(--gq-gold-b)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(185, 132, 18, .25); }
.gq-tab[aria-selected="true"] .gq-tab-n, .gq-tab[aria-selected="true"] .gq-ic { color: #fff; }
.gq-tab-new[aria-selected="true"] .gq-ic { fill: #fff; }
.gq-tab-answered[aria-selected="true"] .gq-ic { fill: rgba(255, 255, 255, .25); }
.gq-tools { display: flex; flex: 1; gap: 10px; min-width: min(100%, 420px); }
.gq-search, .gq-select { position: relative; display: flex; align-items: center; min-height: 46px; border: 1px solid var(--gq-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 40, 61, .04); }
.gq-search { flex: 1.4; min-width: 0; }
.gq-search > .gq-ic, .gq-select > .gq-ic:first-of-type { position: absolute; inset-inline-start: 14px; color: var(--gq-ink); pointer-events: none; }
.gq-search input { width: 100%; min-width: 0; height: 44px; padding: 0 14px; padding-inline-start: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--gq-ink); font: inherit; font-size: 15px; }
.gq-search input::placeholder { color: #8A96A6; }
.gq-search input:focus { outline: 0; }
.gq-search:focus-within, .gq-select:focus-within { border-color: var(--gq-gold); box-shadow: 0 0 0 3px rgba(199, 162, 80, .2); }
.gq-select { flex: 1; min-width: 0; }
.gq-select select { width: 100%; height: 44px; padding: 0 40px; border: 0; border-radius: 12px; background: transparent; color: var(--gq-ink); font: inherit; font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.gq-select select:focus { outline: 0; }
.gq-caret { position: absolute; inset-inline-end: 12px; pointer-events: none; color: var(--gq-ink); }

/* ---- workspace: list on the start side, conversation beside it ---- */
.gq-work { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1fr); gap: 20px; align-items: stretch;
  height: clamp(540px, calc(100vh - 412px), 860px); height: clamp(540px, calc(100dvh - 412px), 860px); }
.gq-list-card, .gq-panel { background: var(--gq-card); border: 1px solid var(--gq-line); border-radius: 16px; box-shadow: var(--gq-shadow); min-width: 0; }
.gq-list-card { padding: 6px; display: flex; flex-direction: column; min-height: 0; }
.gq-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.gq-row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 12px;
  background: #fff; color: inherit; text-align: start; cursor: pointer; transition: background .15s, border-color .15s;
}
.gq-list li + li .gq-row::before { content: ""; position: absolute; top: -3px; inset-inline: 12px; height: 1px; background: var(--gq-line); }
.gq-row:hover { background: #FAFBFC; }
.gq-row.is-active { background: var(--gq-soft); border-color: #F0D9A6; }
.gq-row.is-active::before, :is(.gq-list li:has(.gq-row.is-active) + li .gq-row)::before { display: none; }
.gq-thumb { display: block; flex: none; overflow: hidden; border-radius: 10px; background: #E8EDF2; }
.gq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gq-thumb-empty { display: grid; place-items: center; color: #94A3B8; }
.gq-row-thumb { width: 78px; height: 64px; }
.gq-face { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: var(--gq-navy-3); color: #fff; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gq-line); }
.gq-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gq-row-face { width: 40px; height: 40px; font-size: .85rem; align-self: flex-start; margin-top: 2px; }
.gq-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gq-row-top { display: flex; align-items: center; gap: 8px; }
.gq-row-name { font-size: 1.08rem; font-weight: 800; color: var(--gq-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-row.is-unread .gq-row-q { color: var(--gq-ink); font-weight: 600; }
.gq-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gq-new); flex: none; }
.gq-row-q, .gq-row-prop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-row-q { font-size: .97rem; color: #334155; }
.gq-row-prop { font-size: .9rem; color: var(--gq-muted); }
.gq-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.gq-row-side time { font-size: .8rem; color: var(--gq-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gq-row-chev { color: var(--gq-ink); width: 18px; height: 18px; }
.gq-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap; color: #fff; }
.gq-pill .gq-ic-xs { width: 11px; height: 11px; }
.gq-pill-new { background: var(--gq-new); }
.gq-pill-new .gq-ic { fill: #fff; stroke: none; width: 8px; height: 8px; }
.gq-pill-ok { background: var(--gq-ok); }
.gq-pill-ok .gq-ic { stroke-width: 3; }
.gq-pill-muted { background: #E5E9EE; color: #475569; }

/* empty and no-match states */
.gq-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; min-height: 300px; padding: 40px 24px; text-align: center; }
.gq-empty-sm { min-height: 220px; }
.gq-empty h3 { margin: 6px 0 0; font-size: 1.2rem; font-weight: 800; color: var(--gq-ink); }
.gq-empty p { margin: 0; max-width: 360px; color: var(--gq-muted); line-height: 1.6; }
.gq-empty-ic { width: 64px; height: 64px; padding: 14px; border-radius: 50%; color: var(--gq-gold-b); background: var(--gq-soft); border: 1px solid #F0D9A6; stroke-width: 1.5; }

/* no questions yet: the list card alone, full width */
.gq-work.is-empty { grid-template-columns: minmax(0, 1fr); height: auto; }
.gq-work.is-empty .gq-panel { display: none; }

/* ---- conversation ---- */
.gq-panel { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
.gq-panel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; color: var(--gq-muted); }
.gq-panel-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--gq-line); }
.gq-panel-thumb { width: 88px; height: 64px; }
.gq-panel-title { flex: 1; min-width: 0; }
.gq-panel-title h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--gq-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gq-panel-title p { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; font-size: .88rem; color: var(--gq-muted); }
.gq-back { display: none; }
.gq-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--gq-ink); cursor: pointer; }
.gq-icon-btn:hover { background: #F1F4F7; }
.gq-menu { position: relative; }
.gq-menu-pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 20; min-width: 220px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--gq-line); box-shadow: 0 16px 40px rgba(16, 40, 61, .16); }
.gq-menu-pop > * { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--gq-ink); font-weight: 600; text-decoration: none; text-align: start; cursor: pointer; }
.gq-menu-pop > *:hover, .gq-menu-pop > *:focus-visible { background: var(--gq-soft); color: var(--gq-ink); }
.gq-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.gq-thread:focus { outline: 0; }
.gq-msg { display: flex; gap: 14px; align-items: flex-start; max-width: 94%; }
.gq-msg-face { width: 54px; height: 54px; font-size: 1rem; }
.gq-msg-col { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gq-msg-meta { display: flex; flex-direction: column; gap: 1px; }
.gq-msg-meta b { font-size: 1.08rem; font-weight: 800; color: var(--gq-ink); }
.gq-msg-meta time { font-size: .8rem; color: var(--gq-muted); }
.gq-bubble { position: relative; padding: 14px 20px; border-radius: 16px; background: var(--gq-guest); min-width: min(100%, 300px); }
.gq-bubble p { margin: 0; font-size: 1.05rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: #1F2D3D; }
.gq-msg-me .gq-bubble { background: var(--gq-soft); border: 1px solid #F3E2BC; padding-bottom: 22px; }
.gq-tick { position: absolute; bottom: 5px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 4px; color: #94A3B8; font-size: .72rem; }
.gq-tick.is-read { color: #2563EB; }
.gq-tick.is-held { color: var(--gq-gold-ink); }
.gq-muted { color: var(--gq-muted); }
.gq-center { text-align: center; margin: auto; }
.gq-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 18px; border-top: 1px solid var(--gq-line); color: var(--gq-muted); font-size: .9rem; }
.gq-compose { padding: 16px 18px 18px; border-top: 1px solid var(--gq-line); }
.gq-safe { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .78rem; color: var(--gq-muted); }
.gq-safe .gq-ic { color: var(--gq-gold-b); }
.gq-compose-row { display: flex; align-items: flex-end; gap: 12px; }
.gq-compose-box { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; border: 1px solid var(--gq-line); border-radius: 12px; background: #fff; }
.gq-compose-box:focus-within { border-color: var(--gq-gold); box-shadow: 0 0 0 3px rgba(199, 162, 80, .2); }
.gq-compose textarea { flex: 1; min-width: 0; min-height: 60px; max-height: 160px; padding: 15px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--gq-ink); font: inherit; font-size: 16px; line-height: 1.5; resize: none; }
.gq-compose textarea:focus { outline: 0; }
.gq-compose textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8A96A6; }
.gq-emoji { position: relative; padding: 7px 6px; }
.gq-emoji-pop { position: absolute; bottom: calc(100% + 6px); inset-inline-end: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 40px); gap: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--gq-line); box-shadow: 0 16px 40px rgba(16, 40, 61, .16); }
.gq-emoji-pop button { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; cursor: pointer; }
.gq-emoji-pop button:hover, .gq-emoji-pop button:focus-visible { background: var(--gq-soft); }
.gq-send { display: grid; place-items: center; width: 88px; height: 62px; flex: none; border: 0; border-radius: 12px; background: linear-gradient(180deg, #D6AE55, var(--gq-gold-b)); color: #fff; cursor: pointer; box-shadow: 0 6px 14px rgba(185, 132, 18, .28); }
.gq-send .gq-ic { width: 26px; height: 26px; }
.gq-send:hover { filter: brightness(1.05); }
.gq-send:disabled { opacity: .65; cursor: progress; }
.gq-send.is-busy .gq-ic { animation: gq-pulse 1s ease-in-out infinite; }
@keyframes gq-pulse { 50% { opacity: .35; } }
.gq-compose .err { margin-top: 6px; color: #B42318; font-size: .88rem; }
.gq-compose .err:empty { display: none; }

/* ---- 2026-11-07 (third pass): taken from his full-resolution approved image at 1536x1024 ----
   Hero: the coastal villas photo from the approved image itself (cropped, text-free part; the sky side continues
   it into deep blue), mirrored for English. Banner on a white sheet over the hero's lower edge, his palette golds (owner shell tokens --os-gold / --os-gold-grad),
   list rows as separate cards, the owner's name and time inside the gold bubble, solid gold send button. */
.gq-hero {
  background-color: #02386A;
  background-image: url('/img/home/guest-questions-hero-ltr.webp');
  background-image: image-set(url('/img/home/guest-questions-hero-ltr.webp') 1x, url('/img/home/guest-questions-hero-ltr@2x.webp') 2x);
  background-size: cover; background-position: right top; background-repeat: no-repeat;
}
:root[dir="rtl"] .gq-hero { background-image: url('/img/home/guest-questions-hero-rtl.webp'); background-image: image-set(url('/img/home/guest-questions-hero-rtl.webp') 1x, url('/img/home/guest-questions-hero-rtl@2x.webp') 2x); background-position: left top; }
.gq-hero h1 { gap: 16px; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 800; text-shadow: 0 2px 10px rgba(2, 30, 60, .35); }
.gq-hero-ic { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--os-gold, #C7A250); stroke-width: 1.9; }
.gq-hero p { margin-top: 8px; font-size: 1.25rem; color: #fff; text-shadow: 0 1px 8px rgba(2, 30, 60, .45); }
.gq-hero-text { max-width: min(780px, 64%); }

.gq-verify { position: relative; isolation: isolate; padding: 12px 20px; border-radius: 12px; gap: 14px;
  background: linear-gradient(180deg, #FBF3E6 0%, #F7EAD5 100%); border: 1px solid #EFD9B0; box-shadow: none; }
.gq-verify::before { content: ""; position: absolute; z-index: -1; inset: -14px -14px auto; height: 70px; border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255, 255, 255, 0) 100%); }
.gq-verify::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: inherit; }
.gq-verify-badge { width: 46px; height: 46px; border-radius: 0; background: none; box-shadow: none; color: var(--os-gold, #C7A250); }
.gq-verify-badge .gq-ic { width: 44px; height: 44px; stroke-width: 2; }
.gq-verify .gq-btn-gold { min-height: 50px; min-width: 230px; border-radius: 10px; background: var(--os-gold-grad, linear-gradient(135deg, #E0B755 0%, #B98412 100%)); box-shadow: 0 4px 10px rgba(185, 132, 18, .25); font-weight: 700; }

.gq-tab { background: #F8F9FB; border-color: #DCE2E9; color: var(--gq-ink); font-weight: 700; border-radius: 12px; }
.gq-tab-n { color: var(--gq-ink); font-weight: 700; }
.gq-tab[aria-selected="true"] { background: var(--os-gold-grad, linear-gradient(135deg, #E0B755 0%, #B98412 100%)); box-shadow: 0 4px 10px rgba(185, 132, 18, .25); }
.gq-search, .gq-select { border-color: #DCE2E9; }

.gq-list-card { border-color: #E6EBF0; border-radius: 14px; padding: 6px; }
.gq-list { gap: 4px; }
.gq-list li + li .gq-row::before { display: none; }
.gq-row { background: #FBFCFD; border: 1px solid #E8ECF1; border-radius: 10px; padding: 12px 14px; min-height: 104px; }
.gq-row:hover { background: #F6F8FA; }
.gq-row.is-active { background: #FBF1E1; border-color: #EBD3A6; }
.gq-row-top { gap: 6px; }
.gq-row-top .gq-row-side { flex-direction: row; align-items: center; gap: 14px; margin-inline-start: auto; }
.gq-row-prop { color: #475569; }
.gq-row-chev { width: 20px; height: 20px; stroke-width: 2.4; }

.gq-panel { border-color: #E6EBF0; border-radius: 14px; }
.gq-msg-me .gq-bubble { background: #F8EEDC; border: 0; border-radius: 18px; padding: 12px 22px 26px; }
.gq-msg-me .gq-bubble .gq-msg-meta { margin-bottom: 8px; }
.gq-msg-me .gq-msg-col { gap: 0; }
.gq-bubble { background: #F1F3F6; border-radius: 16px; }

.gq-compose-box { background: #FAFBFC; border-color: #DCE2E9; border-radius: 14px; }
.gq-emoji .gq-icon-btn { color: #5B6B80; }
.gq-emoji .gq-ic { width: 26px; height: 26px; stroke-width: 1.6; }
.gq-send { border-radius: 12px; background: var(--os-gold-grad, linear-gradient(135deg, #E0B755 0%, #B98412 100%)); box-shadow: 0 4px 10px rgba(185, 132, 18, .25); }
.gq-send .gq-ic { stroke-width: 2; }

.gq .gq-emoji .gq-icon-btn .gq-ic { width: 27px; height: 27px; stroke-width: 1.6; }
.gq .gq-send .gq-ic { width: 30px; height: 30px; stroke-width: 2.1; }
/* Unread is shown by the status badge, as in the approved image; the dot stays for screen readers. */
.gq-row .gq-unread-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gq-tab { font-size: 1.02rem; gap: 9px; }
.gq-tab .gq-ic { width: 20px; height: 20px; stroke-width: 2; }
.gq-tab-new .gq-ic { width: 16px; height: 16px; }
.gq-tab-answered .gq-ic { width: 21px; height: 21px; }
.gq-search > .gq-ic, .gq-select > .gq-ic:first-of-type { width: 22px; height: 22px; stroke-width: 2.1; }
.gq-select select { font-weight: 700; }
.gq-verify h2 { font-size: 1.22rem; font-weight: 800; }
.gq-verify p { font-size: .95rem; }
.gq-verify .gq-btn-gold { font-size: 1.02rem; }
.gq-msg-meta b { font-size: 1.12rem; }
.gq-bubble p { font-size: 1.08rem; }

/* Desktop inside the owner shell: the positions of the approved image (72px header): banner 210-290,
   filters 325, list and conversation 396-1000. */
body.os-route .gq:not(.is-narrow) .gq-hero { min-height: 136px; padding: 16px 28px 0; }
body.os-route .gq:not(.is-narrow) .gq-hero:has(+ .gq-verify) { padding-bottom: 0; }
body.os-route .gq:not(.is-narrow) .gq-hero + .gq-verify { margin-top: -16px; }
body.os-route .gq:not(.is-narrow) .gq-toolbar { margin-top: 16px; }
body.os-route .gq:not(.is-narrow) .gq-work { margin-top: 5px; height: clamp(540px, calc(100vh - 420px), 860px);height: clamp(540px, calc(100dvh - 420px), 860px); }
/* The assistant button sits over the sidebar here, not over the reply box. */
@media (min-width: 900px) { body.gq-on.os-route #asLaunch { inset-inline-end: auto; inset-inline-start: calc(18px + env(safe-area-inset-left, 0px)); } }

/* ---- tablet ---- */
/* Sizes follow the page's own width (host-questions.js sets is-compact / is-tight / is-narrow / is-tiny on .gq
   from its measured width), so the owner sidebar never squeezes the panels. Not CSS container queries: those would
   make .gq the containing block of the phone's fixed full-screen conversation. */
.gq.is-compact .gq-row-thumb { width: 64px; height: 54px; }
.gq.is-compact .gq-row-face { display: none; }
.gq.is-compact .gq-view span { display: none; }
.gq.is-compact .gq-view { padding: 0 12px; }
.gq.is-tight .gq-tools { min-width: 100%; }

/* ---- phones and narrow tablets: the list first; a question opens in its own full-screen view ---- */
.gq.is-narrow { gap: 12px; }
body.os-route .gq.is-narrow { padding: 0 14px 20px; }
body.os-route .gq.is-narrow .gq-hero { margin-inline: -14px; min-height: 0; }
body.os-route .gq.is-narrow .gq-hero:has(+ .gq-verify) { padding-bottom: 42px; }
body.os-route .gq.is-narrow .gq-hero + .gq-verify { margin-top: -34px; }
.gq.is-narrow .gq-hero { min-height: 0; padding: 18px 16px; border-radius: 14px; background-position: 30% 60%; }
.gq.is-narrow .gq-hero h1 { gap: 10px; font-size: 1.55rem; }
.gq.is-narrow .gq-hero p { margin-top: 6px; font-size: .86rem; line-height: 1.5; }
.gq.is-narrow .gq-hero-ic { width: 36px; height: 36px; padding: 7px; }
.gq.is-narrow .gq-verify { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-radius: 14px; }
.gq.is-narrow .gq-verify-badge { width: 40px; height: 40px; border-radius: 12px; grid-row: span 2; }
.gq.is-narrow .gq-verify-badge .gq-ic { width: 22px; height: 22px; }
.gq.is-narrow .gq-verify h2 { font-size: 1rem; }
.gq.is-narrow .gq-verify p { font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.gq.is-narrow .gq-verify .gq-btn-gold { grid-column: 2; justify-self: start; min-height: 40px; min-width: 0; padding: 0 14px; font-size: .9rem; border-radius: 10px; margin-top: 6px; }
.gq.is-narrow .gq-toolbar { gap: 10px; }
.gq.is-narrow .gq-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; width: 100%; gap: 8px; }
.gq.is-narrow .gq-tabs::-webkit-scrollbar { display: none; }
.gq.is-narrow .gq-tab { flex: none; min-height: 40px; padding: 0 12px; border-radius: 10px; }
.gq.is-narrow .gq-tools { min-width: 100%; gap: 8px; }
.gq.is-narrow .gq-search, .gq.is-narrow .gq-select { min-height: 44px; border-radius: 10px; }
.gq.is-narrow .gq-search input, .gq.is-narrow .gq-select select { height: 42px; font-size: 16px; }
.gq.is-narrow .gq-select select { padding: 0 30px 0 38px; padding-inline: 38px 30px; font-size: 14px; }
.gq.is-narrow .gq-select > .gq-ic:first-of-type { inset-inline-start: 11px; }
.gq.is-narrow .gq-work { display: block; height: auto; }
.gq.is-narrow .gq-list-card { padding: 4px; }
.gq.is-narrow .gq-list { max-height: none; overflow: visible; }
.gq.is-narrow .gq-row-face { display: inline-grid; width: 34px; height: 34px; }
/* The conversation: a dedicated full-screen view above the site header and bottom bar, sized to the visible
   viewport (window.visualViewport) so the composer stays right above the phone keyboard. */
.gq.is-narrow .gq-panel { display: none; }
.gq.is-narrow .gq-work.is-open .gq-panel {
  display: flex; position: fixed; z-index: 80; inset-inline: 0; top: var(--gq-vv-top, 0px); height: var(--gq-vv-h, 100dvh);
  max-height: none; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff;
}
body.gq-convo-open .bottom-nav, body.gq-convo-open #assistantFab, body.gq-convo-open .assistant-fab, body.gq-convo-open .ai-fab { display: none !important; }
html.gq-convo-lock, html.gq-convo-lock body { overflow: hidden; overscroll-behavior: none; }
.gq.is-narrow .gq-panel-head { gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--gq-navy); color: #fff; border-bottom: 0; }
.gq.is-narrow .gq-panel-head h2 { color: #fff; font-size: 1rem; }
.gq.is-narrow .gq-panel-head p { color: rgba(255, 255, 255, .78); font-size: .8rem; }
.gq.is-narrow .gq-panel-head .gq-icon-btn { color: #fff; }
.gq.is-narrow .gq-panel-head .gq-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.gq.is-narrow .gq-panel-head .gq-view { min-height: 38px; padding: 0 10px; background: transparent; color: #fff; border-color: rgba(224, 183, 85, .8); }
.gq.is-narrow .gq-panel-head .gq-view .gq-ic { color: var(--gq-gold-a); }
.gq.is-narrow .gq-panel-head .gq-view span { display: none; }
.gq.is-narrow .gq-back { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.gq.is-narrow .gq-panel-thumb { width: 44px; height: 40px; border-radius: 8px; }
.gq.is-narrow .gq-thread { flex: 1; min-height: 0; max-height: none; padding: 14px 12px; gap: 14px; background: var(--gq-bg); }
.gq.is-narrow .gq-msg { max-width: 100%; gap: 10px; }
.gq.is-narrow .gq-msg-face { width: 36px; height: 36px; }
.gq.is-narrow .gq-bubble { background: #fff; padding: 11px 14px; min-width: 0; }
.gq.is-narrow .gq-bubble p { font-size: .98rem; line-height: 1.65; }
.gq.is-narrow .gq-msg-me .gq-bubble { background: var(--gq-soft); }
.gq.is-narrow .gq-compose { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; }
.gq.is-narrow .gq-compose-row { gap: 8px; }
.gq.is-narrow .gq-compose textarea { min-height: 48px; padding: 12px; }
.gq.is-narrow .gq-send { width: 54px; height: 50px; }
.gq.is-narrow .gq-note { background: #fff; }
.gq.is-tiny .gq-row { gap: 10px; padding: 10px 6px; }
.gq.is-tiny .gq-row-chev { width: 16px; height: 16px; }
.gq.is-tiny .gq-row-thumb { width: 56px; height: 48px; }
.gq.is-tiny .gq-row-face { display: none; }
@media (prefers-reduced-motion: reduce) { .gq * { transition: none !important; animation: none !important; } }

/* Phones: the blue sky side of the hero sits behind the text; the assistant button stays off the list. */
.gq.is-narrow .gq-hero { background-position: right center; }
:root[dir="rtl"] .gq.is-narrow .gq-hero { background-position: left center; background-image: linear-gradient(270deg, rgba(2, 50, 96, .78) 0%, rgba(2, 50, 96, .55) 60%, rgba(2, 50, 96, .2) 100%), image-set(url('/img/home/guest-questions-hero-rtl.webp') 1x, url('/img/home/guest-questions-hero-rtl@2x.webp') 2x); }
:root:not([dir="rtl"]) .gq.is-narrow .gq-hero { background-image: linear-gradient(90deg, rgba(2, 50, 96, .78) 0%, rgba(2, 50, 96, .55) 60%, rgba(2, 50, 96, .2) 100%), image-set(url('/img/home/guest-questions-hero-ltr.webp') 1x, url('/img/home/guest-questions-hero-ltr@2x.webp') 2x); }
.gq.is-narrow .gq-hero p { font-size: .95rem; }
.gq.is-narrow .gq-verify-badge, .gq.is-narrow .gq-verify-badge .gq-ic { width: 34px; height: 34px; }
@media (max-width: 899px) { body.gq-on #asLaunch { display: none !important; } }

/* Phones: the bottom bar is solid on this page so rows never show through it, and the list's last row clears it. */
@media (max-width: 860px) {
  body.gq-on .bottom-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.gq-on .gq.is-narrow { padding-bottom: 24px; }
}

/* ---- phones, final pass (his feedback 05:12Z): one compact heading, no empty bands, all four tabs visible,
   guest photos on every row, a solid bottom bar that never covers the list. ---- */
.gq.is-narrow .gq-hero { padding: 16px 16px 14px; }
body.os-route .gq.is-narrow .gq-hero:has(+ .gq-verify) { padding-bottom: 38px; }
.gq.is-narrow .gq-hero h1 { font-size: 1.5rem; }
.gq.is-narrow .gq-hero-ic { width: 32px; height: 32px; padding: 0; }
.gq.is-narrow .gq-hero p { font-size: .88rem; line-height: 1.45; margin-top: 4px; }
.gq.is-narrow .gq-verify { padding: 10px 12px; gap: 2px 10px; }
.gq.is-narrow .gq-verify-badge, .gq.is-narrow .gq-verify-badge .gq-ic { width: 30px; height: 30px; }
.gq.is-narrow .gq-verify h2 { font-size: .98rem; }
.gq.is-narrow .gq-verify p { font-size: .8rem; line-height: 1.4; }
.gq.is-narrow .gq-verify .gq-btn-gold { min-height: 38px; margin-top: 6px; font-size: .88rem; }
.gq.is-narrow .gq-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 6px; margin: 0; padding: 0; }
.gq.is-narrow .gq-tab { justify-content: center; min-width: 0; min-height: 42px; padding: 0 4px; gap: 4px; font-size: .84rem; white-space: nowrap; border-radius: 10px; }
.gq.is-narrow .gq-tab .gq-ic { width: 15px; height: 15px; }
.gq.is-narrow .gq-tab-new .gq-ic { width: 9px; height: 9px; }
.gq.is-narrow .gq-tab:not(.gq-tab-new) .gq-ic { display: none; }
.gq.is-tiny .gq-row-face { display: inline-grid; width: 32px; height: 32px; font-size: .78rem; }
.gq.is-tiny .gq-row { padding: 10px 8px; gap: 8px; min-height: 0; }
.gq.is-narrow .gq-row-top .gq-row-side { gap: 8px; }
.gq.is-narrow .gq-row-name { font-size: 1rem; }
.gq.is-narrow .gq-row-q { font-size: .9rem; }
.gq.is-narrow .gq-row-prop { font-size: .82rem; }

/* "All questions" reads "All" on phones so the four tabs fit on one row in every language. */
.gq-tab-short { display: none; }
.gq.is-narrow .gq-tab-long { display: none; }
.gq.is-narrow .gq-tab-short { display: inline; }

/* ---- 06:06Z palette and bubble spacing (his table): borders #E0E5EB, guest messages #F1F3F6,
   owner replies #FFF2D6, gold gradient #E0B755 → #B98412. ---- */
.gq-tab, .gq-search, .gq-select, .gq-list-card, .gq-panel, .gq-compose-box { border-color: var(--gq-line); }
.gq-row { border-color: var(--gq-line); }
.gq-row.is-active { background: #FFF2D6; border-color: #EBD3A6; }
.gq-verify { background: #FFF2D6; border-color: #EBD3A6; }
.gq-bubble, .gq.is-narrow .gq-bubble { background: #F1F3F6; }
.gq-msg-me .gq-bubble, .gq.is-narrow .gq-msg-me .gq-bubble { background: #FFF2D6; }
.gq-thread { gap: 14px; padding: 18px 20px; }
.gq-msg { gap: 12px; }
.gq-msg-col { gap: 4px; }
.gq-bubble { padding: 12px 18px; border-radius: 18px; }
.gq-msg-guest .gq-bubble { border-start-start-radius: 6px; }
.gq-msg-me .gq-bubble { padding: 10px 18px 24px; border-start-start-radius: 6px; }
.gq-bubble p { line-height: 1.7; }
.gq.is-narrow .gq-thread { background: #fff; gap: 12px; padding: 14px 12px; }
.gq.is-narrow .gq-bubble { padding: 10px 14px; }
.gq.is-narrow .gq-msg-me .gq-bubble { padding: 8px 14px 22px; }
/* Phones: the owner menu button lives in the site header (owner shell), so the hero text uses the full width. */
.gq.is-narrow .gq-hero h1 { font-size: 1.4rem; }
.gq.is-narrow .gq-hero-text { max-width: none; padding-inline-end: 0; }

/* Reply states: sending, not sent + retry (the stored message then replaces it with its sent/read tick). */
.gq-msg-pending .gq-bubble { opacity: .78; }
.gq-tick.is-sending { color: #64748B; }
.gq-tick.is-failed { color: #B42318; font-weight: 600; }
.gq .gq-msg-me.gq-msg-pending.is-failed .gq-bubble { opacity: 1; border: 1px solid #F4C7C3; background: #FFF4F2; }
.gq-msg-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; color: #B42318; font-size: .78rem; justify-content: flex-end; }
.gq-msg-fail .gq-retry { min-height: 32px; padding: 4px 12px; font-size: .8rem; color: #B42318; border-color: #F4C7C3; }
.gq-msg-fail .gq-retry:hover { background: #FFF4F2; }
/* A guest name keeps its own spelling and script (dir="auto") but lines up with the page's side, like the time under it. */
html[dir="ltr"] .gq [dir="auto"], html:not([dir]) .gq [dir="auto"] { text-align: left; }
html[dir="rtl"] .gq [dir="auto"] { text-align: right; }
/* The English subtitle is longer than the Arabic one: it wraps before the photo instead of running over it. */
body.os-route .gq:not(.is-narrow) .gq-hero-text { max-width: min(860px, 62%); }
html[dir="ltr"] body.os-route .gq:not(.is-narrow) .gq-hero p { font-size: 1.15rem; }
