/* Ask XkroX - conversation first. One centred conversation; work appears inline as compact cards; the activity panel is optional.
   Additive: applies only when the platform is on (#csSearch.cs-agent-on). Uses the shell's own tokens (--cs-*) and the XkroX ivory/ink language. */
#csSearch.cs-agent-on { max-width: none; width: 100%; padding: 0 16px; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#csSearch.cs-agent-on > :not(#csAgent) { display: none !important; }
#csAgent { flex: 1; min-height: 0; display: flex; }
.ag { --ag-line: var(--cs-line, #e4dfd2); --ag-ink: var(--cs-ink, #14120d); --ag-mut: #5f5a4d; --ag-paper: #fff; --ag-soft: #f4f1e8;
  display: flex; flex-direction: column; width: 100%; height: var(--ag-h, calc(100dvh - 56px - 60px - env(safe-area-inset-bottom, 0px))); min-height: 320px; color: var(--ag-ink); }
@media (min-width: 900px) { .ag { height: var(--ag-h, calc(100dvh - 56px)); } }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.ag-brand h1 { margin: 0; font-size: 24px; line-height: 1.15; }
.ag-mode { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--ag-mut); }
.ag-act { min-height: 40px; padding: 0 14px; border: 1px solid var(--ag-line); background: var(--ag-paper); border-radius: 999px; font: inherit; font-size: 14px; color: var(--ag-ink); cursor: pointer; white-space: nowrap; }
.ag-body { flex: 1; min-height: 0; display: flex; gap: 16px; justify-content: center; }
.ag-main { flex: 1 1 auto; min-width: 0; max-width: 760px; display: flex; flex-direction: column; min-height: 0; }
.ag-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 4px 12px; scroll-behavior: smooth; }
.ag-log { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.ag-msg { display: flex; } .ag-msg.user { justify-content: flex-end; }
.ag-bub { max-width: 100%; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-msg.ai .ag-bub { padding: 2px 2px; }
.ag-msg.user .ag-bub { max-width: 82%; padding: 10px 15px; border-radius: 20px 20px 6px 20px; background: var(--ag-ink); color: #fff; }
.ag-bub a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ag-bad { background: #fbeceb !important; color: #8a2a22 !important; border-radius: 12px; padding: 10px 14px !important; }
.ag-think { color: var(--ag-mut); display: inline-flex; align-items: center; gap: 8px; }
.ag-dots i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--ag-mut); animation: agdot 1.2s infinite ease-in-out; } .ag-dots i:nth-child(2) { animation-delay: .15s; } .ag-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes agdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ag-hello { margin: auto; text-align: center; padding: 8vh 4px 4vh; max-width: 520px; }
.ag-hello h2 { font-family: var(--xk-serif, Georgia, serif); font-weight: 500; font-size: 30px; margin: 0 0 10px; }
.ag-hello p { color: var(--ag-mut); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.ag-ex-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ag-ex, .ag-chip { border: 1px solid var(--ag-line); background: var(--ag-paper); border-radius: 999px; padding: 0 16px; min-height: 44px; font: inherit; font-size: 15px; color: var(--ag-ink); cursor: pointer; }
.ag-ex:hover, .ag-chip:hover, .ag-act:hover { border-color: #b9b29d; }
/* inline task card */
.ag-task { max-width: 100%; }
.ag-tc { border: 1px solid var(--ag-line); background: var(--ag-paper); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ag-tc-head { display: flex; align-items: flex-start; gap: 10px; }
.ag-tc-main { flex: 1; min-width: 0; } .ag-title { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; } .ag-prog { font-size: 14px; color: var(--ag-mut); line-height: 1.4; }
.ag-spin { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid #d8d2c0; border-top-color: var(--ag-ink); animation: agspin .8s linear infinite; }
@keyframes agspin { to { transform: rotate(360deg); } }
.ag-ic { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ag-ic.ok { background: #e3f3e9; color: #1d6b43; } .ag-ic.wait { background: #fdf0d8; color: #8a5a12; } .ag-ic.bad { background: #f1ece0; color: #6b665a; }
.ag-stop { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--ag-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ag-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ag-link { min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ag-mut); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-link.strong { color: var(--ag-ink); font-weight: 600; }
.ag-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-src { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid var(--ag-line); border-radius: 999px; font-size: 12.5px; color: var(--ag-ink); text-decoration: none; background: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; cursor: pointer; }
.ag-src-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ag-mut); } .ag-src-k.read { color: #1d6b43; }
.ag-results { display: flex; flex-direction: column; gap: 8px; }
.ag-card { display: flex; gap: 12px; justify-content: space-between; align-items: center; border: 1px solid var(--ag-line); border-radius: 14px; padding: 11px 13px; background: #fff; }
.ag-card-main { min-width: 0; } .ag-card-name { font-weight: 600; overflow-wrap: anywhere; } .ag-card-meta { font-size: 13.5px; color: var(--ag-mut); overflow-wrap: anywhere; } .ag-card-src { font-size: 12.5px; color: var(--ag-mut); } .ag-card-src a { color: var(--ag-ink); }
.ag-choose, .ag-ok { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ag-ink); background: var(--ag-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ag-no { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ag-ink); background: #fff; color: var(--ag-ink); font: inherit; font-weight: 600; cursor: pointer; }
.ag-approve, .ag-ask { border: 1px solid #ecd9ae; background: #fffaf0; border-radius: 14px; padding: 13px; font-size: 14.5px; }
.ag-approve dl { margin: 8px 0; } .ag-row { display: flex; gap: 10px; padding: 3px 0; } .ag-row dt { width: 34%; color: var(--ag-mut); flex: none; } .ag-row dd { margin: 0; overflow-wrap: anywhere; }
.ag-sum { margin: 6px 0; font-weight: 600; } .ag-pol { margin: 6px 0; padding-left: 18px; font-size: 13px; }
.ag-btns { display: flex; gap: 8px; margin-top: 8px; } .ag-btns button:disabled, .ag-stop:disabled { opacity: .5; cursor: default; }
.ag-note, .ag-hint, .ag-fine { margin: 0; font-size: 12.5px; color: var(--ag-mut); line-height: 1.45; }
.ag-art { display: flex; flex-wrap: wrap; gap: 10px; } .ag-art figure { margin: 0; max-width: 100%; } .ag-art img { display: block; max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--ag-line); } .ag-art figcaption { font-size: 12.5px; color: var(--ag-mut); padding-top: 4px; }
/* composer */
.ag-foot { flex: none; padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--cs-bg, #faf8f3) 82%, transparent); }
@media (max-width: 899px) { .ag-foot { padding-bottom: 8px; } }
.ag-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px 8px; } .ag-chips:empty { display: none; }
.ag-form { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--ag-line); background: var(--ag-paper); border-radius: 26px; padding: 6px 6px 6px 16px; box-shadow: 0 1px 2px rgba(20, 18, 13, .04); }
.ag-form:focus-within { border-color: #8c8570; }
.ag-form textarea { flex: 1; font: inherit; font-size: 16px; line-height: 1.45; border: 0; outline: none; background: transparent; resize: none; padding: 9px 0; max-height: 140px; color: var(--ag-ink); }
.ag-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ag-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ag-fine { text-align: center; padding-top: 6px; }
/* optional activity panel */
.ag-drawer { flex: none; width: 380px; max-width: 42vw; border: 1px solid var(--ag-line); border-radius: 16px; background: var(--ag-paper); display: flex; flex-direction: column; min-height: 0; margin-bottom: 8px; }
.ag-drawer[hidden] { display: none; }
.ag-dhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; } .ag-dclose { width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ag-ink); border-radius: 50%; }
.ag-dtabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--ag-line); overflow-x: auto; }
.ag-dtabs button { min-height: 40px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ag-mut); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; } .ag-dtabs button.on { color: var(--ag-ink); border-bottom-color: var(--ag-ink); font-weight: 600; }
.ag-dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ag-urlbar { display: flex; gap: 8px; align-items: center; padding: 7px 10px; background: var(--ag-soft); border-radius: 10px 10px 0 0; font-size: 12px; } .ag-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-step { color: var(--ag-mut); white-space: nowrap; }
.ag-shot { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 820; object-fit: cover; background: #fff; border: 1px solid var(--ag-line); border-top: 0; margin-top: -10px; }
.ag-thumbs { display: flex; gap: 6px; flex-wrap: wrap; } .ag-th-btn { min-width: 36px; min-height: 36px; border-radius: 9px; border: 1px solid var(--ag-line); background: #fff; font: inherit; font-size: 12px; cursor: pointer; } .ag-th-btn.on { background: var(--ag-ink); color: #fff; }
.ag-steps, .ag-srclist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; } .ag-steps li, .ag-srclist li { padding: 7px 9px; border-radius: 10px; background: var(--ag-soft); overflow-wrap: anywhere; }
.ag-steps li.ev-security { background: #fdeceb; color: #8a2a22; }
.ag-ts { color: #6f6a5b; font-size: 11.5px; margin-right: 6px; } .ag-tag { background: #ebe6d6; border-radius: 6px; padding: 0 6px; font-size: 11px; } .ag-ex-t { color: var(--ag-mut); font-size: 12.5px; margin: 2px 0; }
.ag-trow { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid var(--ag-line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; } .ag-trow-t { overflow-wrap: anywhere; }
.ag-pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; background: #eee9db; white-space: nowrap; } .ag-pill.s-completed { background: #e3f3e9; color: #1d6b43; } .ag-pill.s-failed, .ag-pill.s-cancelled { background: #f1ece0; color: #5f5a4d; } .ag-pill.s-awaiting_approval, .ag-pill.s-awaiting_user_input { background: #fdf0d8; color: #8a5a12; }
.ag-det { margin: 0; } .ag-dev pre { overflow: auto; font-size: 11px; background: #14120d; color: #eee; padding: 10px; border-radius: 8px; }
.ag :focus-visible { outline: 2px solid #1f5fbf; outline-offset: 2px; }
@media (max-width: 899px) {
  .ag-top { padding-top: 8px; } .ag-brand h1 { font-size: 21px; }
  .ag-drawer { position: fixed; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; height: 62dvh; z-index: 40; box-shadow: 0 -8px 30px rgba(20, 18, 13, .18); margin: 0; }
  .ag-msg.user .ag-bub { max-width: 90%; } .ag-hello { padding-top: 5vh; } .ag-hello h2 { font-size: 26px; } .ag-row dt { width: 40%; }
}
@media (prefers-reduced-motion: reduce) { .ag-spin, .ag-dots i { animation: none; } .ag-scroll { scroll-behavior: auto; } }

/* ── delegation: attachments, simulated labels, call card, updates ── */
.ag-attach{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:1px solid var(--ag-line,#d9d9e0);background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.ag-attach[hidden]{display:none}
.ag-pending{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 2px}
.ag-pending[hidden]{display:none}
.ag-pchip{position:relative;display:inline-block}
.ag-pchip img{width:56px;height:56px;object-fit:cover;border-radius:10px;display:block}
.ag-pchip button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#222;color:#fff;font-size:14px;line-height:1;cursor:pointer}
.ag-thumbs-row{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 6px}
.ag-thumb{width:120px;max-width:100%;height:auto;max-height:140px;object-fit:cover;border-radius:10px;display:block}
.ag-sim{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.02em;padding:1px 8px;border-radius:999px;background:#fff4d6;color:#7a5200;border:1px solid #f0d58a;vertical-align:middle}
.ag-call{margin-top:8px;padding:10px 12px;border-radius:12px;background:rgba(127,127,127,.08);font-size:14px;display:grid;gap:2px}
.ag-upd{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ag-upd li.new .ag-trow-t{font-weight:650}
@media (prefers-color-scheme: dark){.ag-sim{background:#3a2e0a;color:#ffd77a;border-color:#6b5514}}

/* ── jump to latest ── */
.ag-foot { position: relative; }
.ag-jump { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); z-index: 2; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ag-line, #d9d9e0); background: var(--cs-bg, #faf8f3); color: inherit; font: inherit; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.12); cursor: pointer; }
.ag-jump[hidden] { display: none; }
.ag-jump:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── conversation history ── */
.ag-hist { display: grid; gap: 10px; }
.ag-hist-bar { display: flex; gap: 8px; align-items: center; }
.ag-hq { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--ag-line, #d9d9e0); background: transparent; color: inherit; font: inherit; font-size: 14px; }
.ag-mini { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ag-line, #d9d9e0); background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ag-mini.danger, .ag-ok.danger { border-color: #b3261e; color: #b3261e; }
.ag-ok.danger { background: #b3261e; color: #fff; }
.ag-mini[disabled] { opacity: .45; cursor: not-allowed; }
.ag-hist-sel { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.ag-hist-confirm { padding: 12px; border-radius: 12px; background: #fdecea; border: 1px solid #f3b8b3; display: grid; gap: 8px; font-size: 14px; }
.ag-hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ag-hrow { display: flex; align-items: center; gap: 6px; border: 1px solid var(--ag-line, #e4e4ea); border-radius: 12px; padding: 2px 4px 2px 2px; }
.ag-hrow.cur { border-color: currentColor; }
.ag-hopen { flex: 1; min-width: 0; text-align: left; background: transparent; border: 0; color: inherit; font: inherit; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; }
.ag-ht { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-hm { font-size: 12px; opacity: .7; }
.ag-hdel { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; opacity: .7; }
.ag-hdel[disabled] { opacity: .25; cursor: not-allowed; }
.ag-hcb { width: 20px; height: 20px; margin-left: 8px; }

/* ── hotel room cards ── */
.ag-stay { margin: 6px 0 2px; font-size: 13px; opacity: .85; }
.ag-rooms { display: grid; gap: 14px; margin-top: 8px; }
.ag-room { border: 1px solid var(--ag-line, #e4e4ea); border-radius: 16px; padding: 12px; display: grid; gap: 6px; background: rgba(255,255,255,.5); }
.ag-room.sel { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }
.ag-gal { display: grid; gap: 6px; }
.ag-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.ag-gal-track::-webkit-scrollbar { display: none; }
.ag-gal-track:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ag-gal-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0; border: 0; background: #eee; cursor: zoom-in; height: clamp(160px, 34vw, 250px); }
.ag-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-gal-thumbs { display: flex; gap: 6px; overflow-x: auto; }
.ag-gal-th { flex: 0 0 auto; width: 52px; height: 38px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #eee; cursor: pointer; opacity: .65; }
.ag-gal-th.on { border-color: currentColor; opacity: 1; }
.ag-gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-room-t { margin: 4px 0 0; font-size: 16px; }
.ag-room-p { font-size: 13px; opacity: .75; }
.ag-price-n { font-size: 20px; font-weight: 700; }
.ag-facts { list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.ag-amen { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip-s { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ag-line, #d9d9e0); }
.ag-book { margin-top: 10px; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(127,127,127,.08); }
.ag-book-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-pillx { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ag-line, #d9d9e0); }
.ag-pillx.pay-paid, .ag-pillx.res-confirmed { background: #e6f4ea; border-color: #a8d5b5; color: #14532d; }
.ag-pillx.pay-failed, .ag-pillx.res-failed, .ag-pillx.res-cancelled { background: #fdecea; border-color: #f3b8b3; color: #8a1c14; }
.ag-handoff { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #111; color: #fff; text-decoration: none; font-weight: 600; justify-self: start; }
.ag-confirm { padding: 10px; border-radius: 10px; background: #e6f4ea; color: #14532d; }
.ag-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ag-lb[hidden] { display: none; }
.ag-lb-img { max-width: 96vw; max-height: 82vh; object-fit: contain; }
.ag-lb-cap { color: #eee; font-size: 13px; padding-top: 8px; }
.ag-lb-x, .ag-lb-n { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; cursor: pointer; }
.ag-lb-x { top: 14px; right: 14px; } .ag-lb-n.prev { left: 10px; } .ag-lb-n.next { right: 10px; }
.ag-gal-slide { position: relative; }
.ag-gal-tag { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.ag-gal-tag.room { background: rgba(20,83,45,.85); }

/* ── hotel room cards (redesign): hierarchy, readable width, long names clamped, details tucked away ── */
.ag-rooms { gap: 16px; }
.ag-banner { margin: 0; font-size: 13px; opacity: .85; }
.ag-room { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
.ag-room-media { min-width: 0; display: grid; gap: 6px; align-content: start; }
.ag-room-body { min-width: 0; display: grid; gap: 8px; align-content: start; }
.ag-room-t { margin: 0; font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ag-room-p { font-size: 13.5px; opacity: .8; }
.ag-keyfacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.ag-keyfacts li { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.ag-keyfacts b { font-weight: 600; opacity: .65; font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; }
.ag-keyfacts li.ok { color: #14532d; }
.ag-price { display: grid; gap: 1px; }
.ag-price-n { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.ag-price-u { font-size: 14px; opacity: .8; }
.ag-line { font-size: 14px; line-height: 1.45; }
.ag-line b { font-weight: 600; }
.ag-line.tx { opacity: .85; font-size: 13.5px; }
.ag-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 6px 0; min-height: 32px; }
.ag-more-b { display: grid; gap: 6px; font-size: 13.5px; padding-bottom: 4px; }
.ag-more-b p { margin: 0; }
.ag-choose { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.ag-choose[disabled] { opacity: .8; cursor: progress; }
.ag-choose.on { background: transparent; color: inherit; border-color: currentColor; }
.ag-sel-err { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #8a1c14; font-size: 14px; }
.ag-sel-note { padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid #ecd9ae; font-size: 14px; }
.ag-approve.hotel { scroll-margin: 80px 0 120px; }
.ag-approve.hotel .ag-row dt { width: 30%; }
@media (max-width: 600px) { .ag-approve.hotel .ag-row { flex-direction: column; gap: 0; padding: 5px 0; } .ag-approve.hotel .ag-row dt { width: auto; font-size: 12.5px; } }
.ag-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ag-btns .ag-ok, .ag-btns .ag-no { flex: 1 1 160px; }
@media (min-width: 860px) {
  .ag-room { grid-template-columns: minmax(260px, 40%) 1fr; align-items: start; }
  .ag-gal-slide { height: clamp(180px, 20vw, 260px); }
}
@media (max-width: 859px) { .ag-gal-slide { height: clamp(170px, 52vw, 240px); } }

/* ── home shortcuts under the Ask input: Open browser | Workspace | Computer ── */
.ag-short { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 2px; }
.ag-sc { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ag-line, #e0ded6); background: var(--ag-paper, #fff); color: inherit; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ag-sc:hover { background: rgba(0,0,0,.04); }
.ag-sc.off { opacity: .6; }
.ag-sc svg { flex: none; }
.ag-sc-note { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--ag-mut, #6b6a62); }
@media (max-width: 520px) { .ag-short { flex-wrap: nowrap; gap: 6px; } .ag-sc { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 0 8px; font-size: 13px; min-width: 0; } .ag-sc svg { width: 16px; height: 16px; } }
@media (max-width: 359px) { .ag-short { flex-wrap: wrap; } .ag-sc { flex: 0 1 auto; } }

.ag-tgbar{display:flex;padding:6px 0}.ag-tgpay{border-left:3px solid #c80;padding-left:8px}

/* Telegram Mini App: the agent fills the window (no site top bar / bottom tab bar), the Back bar lives INSIDE the column, and nothing is wider than the viewport. */
.ag-tgbar { display: flex; align-items: center; flex: 0 0 auto; padding: 2px 0 6px; }
.ag-tgbar .ag-act { padding: 6px 12px; }
body.tg-app #csTopbar, body.tg-app #csNav { display: none !important; }
body.tg-app #csSearch { padding-left: 12px; padding-right: 12px; }
body.tg-app .ag { height: var(--ag-h, 100dvh); max-width: 100%; overflow-x: hidden; }
body.tg-app .ag-top { flex-wrap: wrap; gap: 6px; }
body.tg-app .ag-brand { min-width: 0; flex: 1 1 auto; }
body.tg-app .ag-room, body.tg-app .ag-task, body.tg-app .ag-ap, body.tg-app .ag-book, body.tg-app .ag-msg { max-width: 100%; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
body.tg-app .ag-gal { max-width: 100%; }
body.tg-app #csSurface { padding-bottom: 0 !important; }

/* Telegram focused room view: only the chosen task's card (rooms, photos, terms, Select, approval); no chat bubbles, composer, history or shortcuts. "Full conversation" lifts it. */
body.tg-focus .ag-msg, body.tg-focus .ag-hello, body.tg-focus .ag-foot, body.tg-focus .ag-top, body.tg-focus .ag-thinking { display: none !important; }
body.tg-focus .ag-tgbar { position: sticky; top: 0; z-index: 3; background: var(--cs-bg, #f7f4ec); gap: 8px; }
body.tg-focus .ag-scroll { padding-bottom: 24px; }
.ag-namef { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ag-nameinp { flex: 1 1 140px; min-width: 0; padding: 10px 12px; border: 1px solid var(--ag-line, #d8d2c2); border-radius: 10px; font: inherit; background: #fff; }
.ag-room-prop { font-weight: 700; font-size: 1.02rem; margin: 2px 0 2px; overflow-wrap: anywhere; }

/* Shared browser pane: an overlay, never a navigation away from the conversation. */
.xkb { position: fixed; z-index: 60; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: #fff; color: #14120d;
  border: 1px solid #d8d2c2; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,18,13,.25); overflow: hidden; }
.xkb.full { inset: 0; width: 100%; max-height: none; height: 100dvh; border-radius: 0; border: 0; }
.xkb-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e4dfd2; min-width: 0; }
.xkb-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: #5f5a4d; }
.xkb-badge { flex: 0 0 auto; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #eee9dc; }
.xkb-badge.user { background: #14120d; color: #fff; } .xkb-badge.agent { background: #e7f1e9; color: #1f5f34; }
.xkb-x { flex: 0 0 auto; border: 0; background: transparent; font-size: 1rem; padding: 6px 8px; cursor: pointer; }
.xkb-stage { position: relative; flex: 1 1 auto; min-height: 220px; height: min(52dvh, 460px); background: #f4f1e8; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.xkb.full .xkb-stage { height: auto; flex: 1 1 0; }
.xkb-stage img { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; touch-action: none; }
.xkb.mine .xkb-stage img { cursor: pointer; outline: 2px solid #14120d; outline-offset: -2px; }
.xkb-lock { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(20,18,13,.82); color: #fff; font-size: .85rem; pointer-events: none; }
.xkb-warn { padding: 6px 10px; background: #fff6df; border-top: 1px solid #ecd9a4; font-size: .82rem; }
.xkb-bar, .xkb-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; align-items: center; }
.xkb-btn { border: 1px solid #cfc8b6; background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.xkb-btn.strong { background: #14120d; color: #fff; border-color: #14120d; }
.xkb-form { display: flex; gap: 6px; flex: 1 1 200px; min-width: 0; }
.xkb-form input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border: 1px solid #cfc8b6; border-radius: 10px; font: inherit; font-size: .9rem; }
.xkb-note { padding: 0 10px 10px; font-size: .74rem; color: #5f5a4d; }
body.xkb-open.tg-app .ag-tgbar { display: none; }
@media (max-width: 640px) { .xkb:not(.full) { right: 0; bottom: 0; width: 100%; border-radius: 16px 16px 0 0; } }

.xkb-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.xkb-title b { font-size: .9rem; } .xkb-title .xkb-url { flex: none; }
.xkb-badge.ended { background: #eee9dc; color: #5f5a4d; }
.xkb-link { border: 0; background: transparent; color: #5f5a4d; text-decoration: underline; font: inherit; font-size: .8rem; margin-left: auto; padding: 8px 4px; cursor: pointer; }
.xkb.dock { width: min(380px, calc(100vw - 24px)); }
.xkb.dock .xkb-stage { height: min(34dvh, 300px); min-height: 160px; }
.xkb.big { width: min(760px, calc(100vw - 24px)); } .xkb.big .xkb-stage { height: min(60dvh, 560px); }
.xkb.over .xkb-stage img { filter: grayscale(1) opacity(.55); }

/* The docked task browser never covers the conversation's own composer or task cards: beside it on wide screens, above it on narrow ones. */
@media (min-width: 900px) { body.xkb-open #csAgent { padding-right: min(404px, 38vw); box-sizing: border-box; } }
@media (max-width: 899px) { body.xkb-open .ag-foot { position: fixed; left: 0; right: 0; bottom: var(--xkb-h, 0px); z-index: 61; padding-left: 16px; padding-right: 16px; box-sizing: border-box; background: var(--cs-bg, #faf8f3); } body.xkb-open .ag-scroll { padding-bottom: calc(var(--xkb-h, 0px) + 120px); } }
@media (max-width: 899px) { .xkb.dock .xkb-stage { height: 24dvh; min-height: 120px; } .xkb.dock .xkb-note { display: none; } body.xkb-open .ag-short, body.xkb-open .ag-foot > p, body.xkb-open .ag-foot .ag-note { display: none; } }

/* connected platforms: one small icon beside the other header controls, a compact popover (never a page) */
.ag-plat-wrap { position: relative; margin-left: auto; display: inline-flex; }
.ag-plat { width: 40px; padding: 0; display: inline-grid; place-items: center; position: relative; }
.ag-plat-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2e9b5a; border: 2px solid var(--ag-paper); }
.ag-plat-pop { position: absolute; z-index: 40; top: 46px; right: 0; width: min(300px, calc(100vw - 24px)); background: #fff; color: var(--ag-ink); border: 1px solid var(--ag-line); border-radius: 14px; box-shadow: 0 12px 34px rgba(20, 18, 13, .18); padding: 12px; font-size: 14px; }
.ag-pl-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; } .ag-pl-row.dim { opacity: .62; margin-top: 4px; border-top: 1px solid #eee9dc; padding-top: 10px; }
.ag-pl-ic { flex: none; display: grid; place-items: center; } .ag-pl-tx { display: flex; flex-direction: column; line-height: 1.25; }
.ag-pl-st { font-size: 12.5px; color: #6b6657; } .ag-pl-st.on { color: #1f7a45; font-weight: 600; }
.ag-pl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ag-pl-b { min-height: 38px; padding: 0 14px; border: 1px solid #cfc8b6; background: #fff; border-radius: 999px; font: inherit; font-size: 13.5px; color: inherit; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.ag-pl-b.strong { background: #14120d; color: #fff; border-color: #14120d; } .ag-pl-b.danger { border-color: #b42318; color: #b42318; }
.ag-pl-note { margin: 4px 2px 6px; font-size: 13px; color: #4a463a; } .ag-pl-err { color: #b42318; }
@media (max-width: 640px) { .ag-top { flex-wrap: wrap; } .ag-plat-pop { right: -4px; } }
@media (max-width: 640px) { .ag-plat-pop { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }

/* Kro — compact character at the top of the Ask conversation (shared component: /static/kro/kro.js) */
.ag-kro { flex: none; display: flex; justify-content: center; padding: 2px 0 0; --kro-fade: var(--xk-bg, #faf8f3); }
@media (max-height: 560px) { .ag-kro { display: none; } }
@media (max-width: 640px) { .ag-kro .kro--header .kro-stage { width: 96px; height: 66px; } }
