/* Landing iframe composer styles — edit when /home composer chrome changes (see chat.css). */
/* per-tool recommendation chips — rendered inside the composer (home + chat) */
.svc-comp-recs{
  margin-top: 10px;
  padding: 0 2px;
}
.svc-comp-recs label{
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #71717a;
  margin: 0 0 7px 2px;
}
.svc-comp-recs-row{
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
/* on home: prompt suggestions sit OUTSIDE/below the composer card, centered */
.svc-comp-recs.below{
  margin-top: 18px;
}
.svc-comp-recs.below label{
  text-align: center;
}
.svc-comp-recs.below .svc-comp-recs-row{
  justify-content: center;
}
.svc-comp-rec{
  max-width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8c8cd;
  border-radius: 16px;
  padding: 6px 13px;
  cursor: pointer;
  font-size: 11.5px;
  font-family: inherit;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}
.svc-comp-rec:hover{
  border-color: rgba(255, 176, 102, 0.55);
  color: #fff;
  background: rgba(255, 176, 102, 0.1);
}
.svc-send.queue{ background: linear-gradient(135deg, #22d3ee, #6366f1) !important; color: #fff !important; }
/* ---- composer (mock style: textarea + bottom control row) ---- */
.svc-composer-wrap{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  /* default: composer sits low. When the global player is open we add bottom
     padding to lift the composer above it; closing the player drops it back down
     (animated). */
  padding: 34px 24px 26px;
  display: flex;
  justify-content: center;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(11, 11, 12, 0.55) 60%,
    rgba(11, 11, 12, 0.78)
  );
  pointer-events: none;
  transition: padding-bottom 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
body.sv-player-visible .svc-composer-wrap{
  padding-bottom: 104px;
}
.svc-composer-wrap > *{
  pointer-events: auto;
}
.svc-composer-wrap .svc-composer{
  max-width: 720px;
}
.svc-composer{
  width: 100%;
  position: relative;
  z-index: 0; /* own stacking context so the ::before blur layer sits behind content */
  /* Frosted glass: the backdrop-filter lives on ::before, NOT on .svc-composer
     itself. A backdrop-filtered ancestor becomes a "backdrop root", which would
     scope the dropdown menus' OWN blur to this box (text bled through). The
     pseudo-element is a backdrop root only for itself (it has no children), so the
     menus inside still blur the real page behind. */
  background: transparent;
  border: 1px solid rgba(255, 176, 102, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 50px rgba(0, 0, 0, 0.5);
  border-radius: 22px;
  padding: 16px 16px 13px;
  /* collapse the secondary controls by the composer's OWN width */
  container-type: inline-size;
  container-name: svcomp;
}
/* ---- chat-input attachments — Claude/GPT-style square cards above the input ---- */
.svc-attach-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
}
/* same cards shown on a sent user message (read-only, sits under the bubble text) */
.svc-attach-row.in-msg{
  margin-bottom: 0;
  margin-top: 7px;
}
.svc-attach-row.in-msg .svc-attach-card{
  width: 156px;
  min-height: 56px;
}
.svc-attach-card{
  position: relative;
  margin-left: 10px;
  width: 170px;
  max-width: 100%;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.svc-attach-name{
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #e8e8ec;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.svc-attach-ext{
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8c8cd;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 2px 7px;
}
.svc-attach-x{
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8e8ec;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.14s,
    background 0.14s;
}
.svc-attach-card:hover .svc-attach-x{
  opacity: 1;
}
.svc-attach-x:hover{
  background: rgba(255, 61, 138, 0.35);
  border-color: rgba(255, 61, 138, 0.5);
  color: #fff;
}
.svc-composer-shine{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
}
.svc-composer-shine-base,
.svc-composer-shine-loop{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.svc-composer-shine-base{
  opacity: 0.65;
  background-image: linear-gradient(
    135deg,
    rgba(255, 176, 102, 0.22),
    rgba(255, 122, 45, 0.38),
    rgba(255, 77, 31, 0.2)
  );
}
.svc-composer-shine-loop{
  background-image: linear-gradient(
    115deg,
    transparent 28%,
    transparent 40%,
    rgba(255, 210, 154, 0.15) 42%,
    rgba(255, 176, 102, 0.9) 50%,
    rgba(255, 122, 45, 0.85) 58%,
    rgba(255, 77, 31, 0.35) 66%,
    transparent 72%
  );
  background-size: 250% 250%;
  background-position: 0% 0%;
  will-change: background-position;
  animation: svc-border-shine-loop 10s linear infinite;
}
@keyframes svc-border-shine-loop{
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
@media (prefers-reduced-motion: reduce){
  .svc-composer-shine-loop {
    animation: none;
  }
}
.svc-composer::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(18, 17, 23, 0.55);
  backdrop-filter: blur(24px) saturate(1.5);
  pointer-events: none;
}
/* When the composer is cramped, Mode/Model/Demo fold into a right ⋯ (so + and
   send always stay on the row); when even tighter, Agent One folds into +. */
.svc-comp-more-wrap{
  display: none;
}
@container svcomp (max-width: 446px){
  .svc-comp-row {
    flex-wrap: nowrap;
  }
  .svc-comp-collapse {
    display: none !important;
  }
  .svc-comp-more-wrap {
    display: inline-flex;
  }
}
@container svcomp (max-width: 338px){
  .svc-comp-collapse-agent {
    display: none !important;
  }
}
.svc-composer textarea{
  width: 100%;
  resize: none;
  background: none;
  border: none;
  outline: none;
  color: #f6f6f7;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  min-height: calc(2 * 1lh + 6px);
  overflow-y: hidden;
  padding: 2px 6px 4px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.svc-composer textarea::-webkit-scrollbar{
  display: none;
}
.svc-composer textarea::placeholder{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-composer textarea::placeholder{
  color: #71717a;
}
/* contentEditable composer (MentionEditor) — mirrors the textarea, holds atomic @-chips */
.svc-ce{
  position: relative; /* positioning context for the placeholder overlay below */
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #f6f6f7;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  min-height: 46px;
  max-height: 92px;
  overflow-y: auto;
  padding: 2px 6px 8px;
  white-space: pre-wrap;
  word-break: break-word;
  /* portaled into the home hero (.home-hero { text-align:center }); the editor
     must always read as a normal left-aligned input regardless of host */
  text-align: left;
}
.svc-ce[contenteditable="false"]{
  opacity: 0.6;
  cursor: default;
}
.svc-ce.is-empty::before{
  content: attr(data-placeholder);
  color: #71717a;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* overlay the placeholder OUT OF FLOW so the caret sits at its start (offset 0) — even
     after backspacing all text — instead of dropping to the line below a block pseudo.
     top/left/right match .svc-ce padding (2px 6px 8px) so it aligns with typed text. */
  position: absolute;
  top: 2px;
  left: 6px;
  right: 6px;
}
/* Landing hero: typewriter demo overlay (replaces static placeholder when idle) */
.svc-landing-typing{
  position: absolute;
  /* align with the real caret: .svc-composer padding (16px) + .svc-ce padding (2px top /
     6px left) — same offsets the native placeholder (.svc-ce.is-empty::before) uses. */
  top: 18px;
  left: 22px;
  right: 16px;
  z-index: 1;
  pointer-events: none;
  color: #71717a;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.svc-landing-cursor{
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: #71717a;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: svc-landing-blink 1s steps(2) infinite;
}
@keyframes svc-landing-blink{
  50% { opacity: 0; }
}
.svc-ce.demo-suppress.is-empty::before{
  content: none;
}
/* wrap to a 2nd row when the composer is narrow (e.g. Agent One docked in the
   studio) instead of squashing the controls — keeps the send button circular */
.svc-comp-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 9px;
  position: relative;
  z-index: 2;
}
.svc-comp-spacer{
  flex: 1 1 0;
  min-width: 0;
}
.svc-plus{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8c8cd;
  font-size: 17px;
  line-height: 1;
}
.svc-plus:hover{
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.svc-dd-wrap{
  position: relative;
}
.svc-dd{
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  border-radius: 16px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
}
.svc-dd em{
  font-style: normal;
  font-size: 9px;
  color: #a1a1aa;
}
/* Chevron icon that replaces the ▾ glyph in the composer dropdowns. currentColor is
   driven by this rule (kept dim to match the old em), not the brighter button text. */
.svc-dd-arrow{
  flex: none;
  width: 13px;
  height: 13px;
  color: #a1a1aa;
  margin-left: -1px;
}
.svc-dd .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb066, #ff3d8a);
  box-shadow: 0 0 6px rgba(255, 176, 102, 0.8);
}
.svc-dd:hover{
  background: rgba(255, 255, 255, 0.1);
}
.svc-dd.ghost{
  background: none;
  border-color: transparent;
  color: #9a9aa2;
}
.svc-dd.ghost:hover{
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
}
.svc-menu{
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  z-index: 30;
  min-width: 150px;
  background: rgba(24, 24, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}
/* open below the trigger by default; flip upward only when there isn't room below */
.svc-menu.down{
  bottom: auto;
  top: calc(100% + 7px);
}
.svc-menu.up{
  top: auto;
  bottom: calc(100% + 7px);
}
.svc-menu.right{
  left: auto;
  right: 0;
}
.svc-menu button{
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 12.5px;
  font-family: inherit;
  padding: 8px 11px;
}
.svc-menu button:hover{
  background: rgba(255, 176, 102, 0.16);
  color: #fff;
}
.svc-send{
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Frosted glass instead of the orange gradient. */
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.svc-send:not(:disabled):hover{
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.svc-send:disabled{
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}
/* BorderBeam wrapper around the send button — keep it the same fixed 34px circle
   footprint as the bare button so the composer flex row is unchanged. */
.svc-send-beam{
  flex: 0 0 34px;
  display: inline-flex;
  border-radius: 50%;
}
/* Generic BorderBeam wrapper for the composer's + / mode / model buttons — sizes
   to the wrapped control so it doesn't disturb the row or dropdown positioning. */
.svc-beam{
  display: inline-flex;
  vertical-align: middle;
}
/* component CTA + inline sequenced list */
.svc-comp-cta{
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  padding: 9px 13px;
  color: #e4e4e7;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.svc-comp-cta:hover{
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 176, 102, 0.4);
}
.svc-comp-cta b{
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.svc-comp-chev{
  font-size: 13px;
  color: #a1a1aa;
  width: 12px;
  text-align: center;
}
.svc-comp-hint{
  margin-left: auto;
  font-size: 10.5px;
  color: #8a8a92;
  letter-spacing: 0.2px;
}
.svc-comp-seq{
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.svc-comp-seq::before{
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  bottom: 18px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.svc-comp-item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: svc-in 0.25s ease-out both;
}
.svc-comp-item:hover{
  border-color: rgba(255, 176, 102, 0.28);
}
.svc-comp-idx{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #0b0b0c;
  background: linear-gradient(135deg, #ffb066, #ff7a2d);
}
.svc-comp-thumb{
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.svc-comp-info{
  flex: 1;
  min-width: 0;
}
.svc-comp-info b{
  display: block;
  font-size: 12.5px;
  color: #f4f4f6;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-comp-info span{
  display: block;
  font-size: 10.5px;
  color: #a1a1aa;
}
.svc-comp-play{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: linear-gradient(135deg, #ff7a2d, #ff3d8a);
  color: #fff;
}
/* rich dropdowns (agent mode / model version) */
.svc-menu.rich{
  min-width: 300px;
  padding: 6px;
}
.svc-menu.rich button{
  padding: 9px 11px;
  border-radius: 9px;
}
.svc-menu.rich button.is-cur{
  background: rgba(255, 176, 102, 0.07);
}
.svchat.embedded .svc-composer-wrap{
  padding: 26px 10px 12px;
}
.svchat.embedded .svc-composer{
  padding: 10px 10px 9px;
}
.svchat.embedded .svc-composer textarea{
  min-height: calc(2 * 1lh + 6px);
  font-size: 12.5px;
}
/* ---- composer + menu (Attach/Record/Link/Tools/Workflows/Studio) ---- */
.svc-plus.on{
  background: rgba(255, 176, 102, 0.18);
  color: #ffd29a;
}
.svc-plusmenu{
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  z-index: 30;
  min-width: 214px;
  background: rgba(20, 20, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}
.svc-plusmenu.down{
  bottom: auto;
  top: calc(100% + 7px);
}
.svc-plusmenu.up{
  top: auto;
  bottom: calc(100% + 7px);
}
/* submenu flyouts follow the parent's open direction so they don't run off-screen */
.svc-plusmenu.down .svc-pm-fly{
  bottom: auto;
  top: 0;
}
.svc-plusmenu.down .svc-cat-fly{
  bottom: auto;
  top: 0;
}
.svc-pm-row{
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 9px;
  color: #e9e9ec;
  font-size: 13.5px;
  font-family: inherit;
  padding: 9px 11px;
}
.svc-pm-row span{
  flex: 1;
}
.svc-pm-row em{
  font-style: normal;
  color: #71717a;
  font-size: 16px;
  line-height: 1;
}
.svc-pm-row svg{
  color: #c8c8cd;
  flex: 0 0 auto;
}
.svc-pm-row:hover{
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.svc-pm-div{
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 6px;
}
.svc-pm-sub{
  position: relative;
}
.svc-pm-fly{
  position: absolute;
  left: calc(100% + 6px);
  bottom: 0;
  z-index: 40;
}
/* invisible hover bridge spanning the gap, so moving parent → submenu keeps it open */
.svc-pm-sub > .svc-pm-fly::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 14px;
}
/* categorized tools menu + per-category flyout */
.svc-menu.cat{
  min-width: 252px;
  padding: 5px;
  max-height: 70vh;
  overflow: visible;
  z-index: 2100;
}
.svc-catmenu{
  display: flex;
  flex-direction: column;
}
.svc-cat{
  position: relative;
}
/* Specificity must beat `.svc-menu button` (0,1,1) — otherwise its `display:block`
   wins over the flex below and the `›` arrow falls inline next to the label
   instead of being pushed to the far right by `justify-content: space-between`. */
.svc-catmenu .svc-cat-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 13px;
  font-family: inherit;
  padding: 9px 11px;
}
.svc-cat-btn em{
  font-style: normal;
  color: #71717a;
  font-size: 16px;
  line-height: 1;
}
.svc-cat:hover > .svc-cat-btn{
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.svc-cat-fly{
  position: absolute;
  left: calc(100% + 6px);
  bottom: 0;
  min-width: 234px;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(20, 20, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  z-index: 40;
}
.svc-cat-fly button{
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 12.5px;
  font-family: inherit;
  padding: 8px 11px;
}
.svc-cat-fly button:hover{
  background: rgba(255, 176, 102, 0.16);
  color: #fff;
}
/* LIQUID GLASS on the top-level composer/chat menus — a translucent surface + a
   strong, saturated blur reads as buttery frosted glass over the page behind.
   (Works now that .svc-composer is no longer a backdrop root — see note above.) */
.svc-menu,
.svc-plusmenu,
.svc-mentmenu,
.svc-compmore-pop{
  /* OPAQUE, not translucent. On the landing/home-hero composer this menu flips DOWN over
     bright hero content (workflow/spark TRY pills, recognition chips) and the backdrop blur
     does NOT reliably obscure it — bright glyphs like the #ffb066 workflow icon bled straight
     through even at 0.96. Solid bg is the only guaranteed no-bleed fix; same call the flyouts
     below already made ("no bleed"). Kept in sync with chat.css. */
  background: rgb(20, 19, 24) !important;
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Welcome-page Agent One dropdown — frosted glass (translucent), by request. SCOPED to
   `.svc-menu.cat` so only this menu goes see-through; the mention/model menus keep the
   solid no-bleed surface above. `.svc-menu.cat` (0,2,0) + !important beats the `.svc-menu`
   opaque rule. Blur reaches the page (the composer isn't a backdrop root — see note above).
   Kept in sync with the sub-flyout (.svc-cat-fly--glass) below. The "+" menu gets the same
   glass, but through a pseudo-element — see the .svc-plusmenu block at the end. */
.svc-menu.cat{
  /* AI Studio's glass, value for value (components/collab-studio-v2/ui/timeline/menuGlass.js),
     matching the signed-in composer in src/agentone/chat.css. Landing is always dark. */
  background: rgba(22, 19, 34, 0.62) !important;
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Sub-menu flyouts sit BESIDE their parent menu, so they're inside the parent's
   own backdrop-root and their blur can't reach the page — keep them near-opaque
   (no bleed) with a soft frost so they still feel like glass. */
.svc-cat-fly,
.svc-pm-fly{
  background: rgba(18, 17, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 5px;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* The Agent One menu's flyout is PORTALED to <body> (see CategoryMenu `glass`), so it
   is NOT trapped in the parent's backdrop-root — give it the exact same translucent
   liquid glass + strong page blur as .svc-menu so the two surfaces match. */
.svc-cat-fly--glass{
  /* Studio's submenu variant — a touch denser than the menu it hangs off. */
  background: rgba(22, 19, 34, 0.72);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2100 !important;
}
/* ---- "+" menu: frosted glass on BOTH levels (landing/welcome only) ----
   The glass sits on a ::before instead of on the menu box, because any element with
   backdrop-filter becomes a BACKDROP ROOT for its descendants — that is precisely what
   pinned the flyout beside it to near-opaque (note above). A pseudo-element has no
   descendants, so the menu frosts the page AND .svc-pm-fly is free to do the same.
   Unqualified (not `.down`) so it looks identical whichever way the menu flips. */
.svc-plusmenu{
  background: transparent !important;
  -webkit-backdrop-filter: none;   /* must be none, or the menu is a backdrop root again */
  backdrop-filter: none;
}
.svc-plusmenu::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;                     /* behind the rows, above the page; .svc-plusmenu's
                                      z-index:30 keeps this inside its stacking context */
  border-radius: inherit;
  background: rgba(20, 19, 24, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);  /* the parent's inset highlight
                                      would paint under this pseudo — re-add it here */
}
/* Second level ("+" → AI Tools ›) — same glass as its parent. Beats the near-opaque
   .svc-pm-fly rule above on specificity (0,2,0). The THIRD level (.svc-cat-fly, inside
   this element) stays near-opaque: it's in *this* element's backdrop root. */
.svc-plusmenu .svc-pm-fly{
  background: rgba(20, 19, 24, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
}
/* ---- @-mention chip (inline, in user + agent messages) ---- */
.svc-mention{
  display: inline;
  cursor: default;
  white-space: nowrap;
  background: rgba(255, 176, 102, 0.13);
  border: 1px solid rgba(255, 176, 102, 0.32);
  border-radius: 7px;
  padding: 1px 7px;
  margin: 0 1px;
}
.svc-mention:hover{
  background: rgba(255, 176, 102, 0.22);
  border-color: rgba(255, 176, 102, 0.62);
}
/* one chip, two parts: @category › name */
.svc-mention-at{
  color: rgba(255, 210, 154, 0.65);
  font-weight: 700;
}
.svc-mention-cat{
  color: #e7c39a;
  font-weight: 600;
}
.svc-mention-sep{
  color: rgba(255, 176, 102, 0.55);
  margin: 0 4px;
  font-weight: 700;
}
.svc-mention-name{
  color: #ffd29a;
  font-weight: 700;
}
.svc-chip .svc-mention-sep{
  margin: 0 3px;
}
/* file vs tool accent (both the composer chip and the rendered message chip carry data-kind) */
.svc-mention[data-kind="file"]{
  background: rgba(120, 190, 255, 0.13);
  border-color: rgba(120, 190, 255, 0.32);
}
.svc-mention[data-kind="file"] .svc-mention-cat,
.svc-mention[data-kind="file"] .svc-mention-name{
  color: #bfe0ff;
}
.svc-mention[data-kind="file"] .svc-mention-at,
.svc-mention[data-kind="file"] .svc-mention-sep{
  color: rgba(120, 190, 255, 0.7);
}
/* little file/tool tag shown after a menu item */
.svc-ment-tag{
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a92;
  vertical-align: middle;
}
.svc-ment-item.active .svc-ment-tag,
.svc-ment-item:hover .svc-ment-tag{
  color: #ffd29a;
}
/* hover tooltip — portalled to <body>, fixed, so it never clips inside a bubble */
.svc-mention-tip{
  position: fixed;
  transform: translate(-50%, calc(-100% - 8px));
  z-index: 9999;
  max-width: min(280px, 90vw);
  white-space: nowrap;
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  color: #f4f4f6;
  background: rgba(20, 20, 23, 0.98);
  border: 1px solid rgba(255, 176, 102, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: svc-tip-in 0.12s ease-out both; /* opacity only — must not override the position transform */
}
/* file chips are interactive (hover card + click opens Library) */
.svc-mention[data-file-id]{
  cursor: pointer;
}
/* ---- @-mention autocomplete menu ---- */
.svc-ta-wrap{
  position: relative; /* containing block for the .svc-mentmenu popup */
  z-index: 2; /* sit above .svc-composer-shine (z-index:1) */
  margin-bottom: 10px;
  /* NB: do NOT add `overflow: hidden` here — the @-mention menu is positioned
     above (`bottom: calc(100% + 6px)`) OR below (`.down`, see MentionEditor's
     flip logic) this box, and either side would get clipped away. */
}
/* While the @-menu is open, lift this wrap above the controls row (.svc-comp-row,
   also z-index:2 but later in the DOM → would otherwise paint over a DOWN-flipped
   menu) so the menu covers the + button and the Agent One tab. */
.svc-ta-wrap.menu-open{
  z-index: 6;
}
.svc-mentmenu{
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 50;
  min-width: 230px;
  max-width: min(340px, calc(100vw - 24px));
  max-height: min(300px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(20, 20, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}
/* Flip BELOW the composer when there isn't room above (e.g. the hero composer
   sits high on the page). MentionEditor adds `.down` after measuring; the inline
   max-height it sets keeps the menu fully on-screen. `bottom: auto` is required
   so the menu isn't stretched between both top and bottom anchors. */
.svc-mentmenu.down{
  top: calc(100% + 6px);
  bottom: auto;
}
.svc-ment-grp + .svc-ment-grp{
  margin-top: 4px;
}
.svc-ment-grp label{
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #71717a;
  padding: 6px 9px 3px;
}
.svc-mentmenu button{
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  padding: 7px 10px;
}
.svc-mentmenu button.active,
.svc-mentmenu button:hover{
  background: rgba(255, 176, 102, 0.16);
  color: #fff;
}
/* category "folder" row — drill in to its names */
.svc-ment-folder{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.svc-ment-folder-cat{
  font-weight: 700;
}
.svc-ment-folder-meta{
  font-size: 10px;
  font-weight: 700;
  color: #8a8a92;
  font-family: ui-monospace, monospace;
  flex: 0 0 auto;
}
.svc-ment-folder.active .svc-ment-folder-meta,
.svc-ment-folder:hover .svc-ment-folder-meta{
  color: #ffd29a;
}
/* drill header (back + category) */
.svc-ment-drillhead{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 7px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: -6px;
  background: rgba(20, 20, 23, 0.96);
  z-index: 1;
}
.svc-ment-drillhead b{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffd29a;
  text-transform: uppercase;
}
.svc-ment-drillhead span{
  margin-left: auto;
  font-size: 9.5px;
  color: #8a8a92;
}
.svc-ment-back{
  width: 22px !important;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d4d4d8;
  font-size: 15px;
  padding: 0 !important;
}
.svc-ment-back:hover{
  background: rgba(255, 176, 102, 0.2) !important;
  color: #fff;
}
.svc-ment-loader{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 11px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
}
.svc-ment-empty{
  padding: 14px 11px;
  color: #8a8a92;
  font-size: 12px;
}
/* ---- drag-drop upload zone ---- */
.svc-composer{
  position: relative;
}
.svc-composer.dropping{
  border-color: rgba(255, 176, 102, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 176, 102, 0.4),
    0 18px 50px rgba(0, 0, 0, 0.55);
}
.svc-dropzone{
  position: absolute;
  inset: 4px;
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 122, 45, 0.1);
  border: 1.5px dashed rgba(255, 176, 102, 0.7);
  backdrop-filter: blur(2px);
}
.svc-dropzone span{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffd29a;
}
/* dock the panel ABOVE the composer only while it is open — Core's default
   row layout is preserved when no panel is present. */
.svc-composer-wrap:has(.svc-qpanel){ flex-direction: column; align-items: center; gap: 10px; }
/* ---- landing: one shell — bright glass-strong fill + orange shine ---- */
.landing-composer .landing-react-mount .svc-composer {
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.landing-composer .landing-react-mount .svc-composer::before {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
}
.landing-composer .landing-react-mount .svc-composer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0.7;
}
.landing-composer .landing-react-mount .svc-composer .svc-composer-shine {
  opacity: 0.9;
}

/* ---- landing chrome (colors / send / typewriter) ---- */
.landing-react-mount .svc-send,
.landing-react-mount .svc-send:disabled {
  opacity: 1 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #ff7a2d, #ff4d1f) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px -4px rgba(255, 90, 30, 0.55) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.landing-react-mount .svc-send:hover {
  filter: brightness(1.08) !important;
  background: linear-gradient(135deg, #ff7a2d, #ff4d1f) !important;
}
.landing-react-mount .svc-landing-typing {
  color: #f4f1ff !important;
  /* align the demo text with the real caret / above the + button:
     .svc-composer padding 16px + .svc-ce padding (2px top / 6px left) */
  top: 18px !important;
  left: 22px !important;
  right: 14px !important;
  font-size: 13px !important;
}
.landing-react-mount .svc-landing-cursor {
  background: #f4f1ff !important;
}
.landing-react-mount .svc-ce {
  color: #f4f1ff !important;
  font-size: 13px !important;
}
.landing-react-mount .svc-composer:focus-within {
  box-shadow: none !important;
}

/* Beat landing global button reset */
.landing-react-mount .svc-composer button {
  font-family: inherit;
  cursor: pointer;
}
.landing-react-mount .svc-pm-row {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  text-align: left !important;
  background: none;
  border: none;
  border-radius: 9px;
  color: #e9e9ec;
  font-size: 13.5px;
  padding: 9px 11px;
}
.landing-react-mount .svc-catmenu .svc-cat-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  text-align: left !important;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 13px;
  padding: 9px 11px;
}
.landing-react-mount .svc-cat:hover > .svc-cat-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.landing-react-mount .svc-cat-fly button,
.landing-react-mount .svc-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 12.5px;
  padding: 8px 11px;
  font-family: inherit;
  cursor: pointer;
}
.landing-react-mount .svc-menu button:hover,
.landing-react-mount .svc-cat-fly button:hover {
  background: rgba(255, 176, 102, 0.16);
  color: #fff;
}
