/* Generated by scripts/sync-hud.mjs from the Yap Yap app's src/index.css. Do not edit by hand. */
.hud-host{--bg-card-solid:#ffffff;--bg-hover:#f1f1f4;--bg-modal-sidebar:#f7f7f8;--border-subtle:rgba(0, 0, 0, 0.065);--border-strong:rgba(0, 0, 0, 0.12);--text-primary:#141416;--text-secondary:#71717a;--text-muted:#85858e}
.yy-translation-preview .yy-hud{position: static;
  transform: none;}
.yy-translation-preview .yy-hud-targets{position: relative;
  inset: 7px auto auto;
  align-self: flex-end;
  margin-right: 0px;
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
  max-width: min(235px, calc(100vw - 88px));
  max-height: none;}
.yy-hud{position: fixed;
  z-index: 50;
  bottom: 10px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 16px);
  transform: translateX(-50%);
  --hud-glow: transparent;}
.yy-hud[data-mode="ask"]{--hud-glow: #14c4a18c;}
.yy-hud[data-mode="translate"]{--hud-glow: #416cfdad;}
.yy-hud-pill{--hud-ease: cubic-bezier(0.05, 0.6, 0.4, 0.95);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 70px;
  height: 36px;
  overflow: hidden;
  padding: 0 4px;
  border: 1px solid #ffffff4a;
  border-radius: 999px;
  background: #060707;
  color: #fff;
  transition: width 0.2s var(--hud-ease), opacity 0.2s var(--hud-ease), transform 0.2s var(--hud-ease);}
.yy-hud-pill[data-state="recording"]{width: 126px;}
.yy-hud-pill[data-state="paused"]{width: 118px;}
.yy-hud-pill[data-state="recording"]:has(.yy-hud-actions:hover, .yy-hud-actions:focus-within){width: 158px;}
.yy-hud-pill[data-state="paused"]:has(.yy-hud-actions:hover, .yy-hud-actions:focus-within){width: 150px;}
.yy-hud-pill[data-state="thinking"]{width: 100px;}
.yy-hud-pill[data-state="closing"]{opacity: 0;
  transform: scale(0.92);}
.yy-hud-pill::before{position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0, var(--hud-glow), transparent 64%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--hud-ease);}
.yy-hud-pill[data-state="recording"]::before{opacity: 1;}
.yy-hud-pill button{position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 0;
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: width 0.2s var(--hud-ease), opacity 0.2s var(--hud-ease), transform 0.2s var(--hud-ease);}
.yy-hud-pill .yy-hud-cancel{transform: translateX(8px);}
.yy-hud-pill .yy-hud-actions button{transform: translateX(-8px);}
.yy-hud-actions{display: flex;
  flex-shrink: 0;
  align-items: center;}
.yy-hud-pill:is([data-state="recording"], [data-state="paused"]) .yy-hud-cancel,
.yy-hud-pill[data-state="recording"] .yy-hud-confirm,
.yy-hud-pill[data-state="paused"] .yy-hud-resume,
.yy-hud-pill[data-state="recording"] .yy-hud-actions:is(:hover, :focus-within) .yy-hud-pause,
.yy-hud-pill[data-state="paused"] .yy-hud-actions:is(:hover, :focus-within) .yy-hud-confirm{width: 26px;
  opacity: 1;
  transform: none;}
.yy-hud-pill[data-state="recording"] .yy-hud-actions:is(:hover, :focus-within) .yy-hud-pause,
.yy-hud-pill[data-state="paused"] .yy-hud-actions:is(:hover, :focus-within) .yy-hud-confirm{margin-right: 6px;}
.yy-hud-pill .yy-hud-actions button{transition: width 0.2s var(--hud-ease), opacity 0.2s var(--hud-ease), transform 0.2s var(--hud-ease),
    margin 0.2s var(--hud-ease), background-color 0.2s var(--hud-ease), color 0.2s var(--hud-ease);}
.yy-hud-pause,
.yy-hud-pill[data-state="paused"] .yy-hud-confirm{background: #404142;
  color: #fff;}
.yy-hud-resume{background: #fff;
  color: #17191a;}
.yy-hud-pill-paused{display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 0;
  overflow: hidden;
  color: #ffffffa6;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  transition: width 0.2s var(--hud-ease), margin 0.2s var(--hud-ease), opacity 0.2s var(--hud-ease);}
.yy-hud-pill[data-state="paused"] .yy-hud-pill-paused{width: 44px;
  margin: 0 6px;
  opacity: 1;}
.yy-hud-cancel{background: #404142;
  color: #fff;}
.yy-hud-confirm{background: #fff;
  color: #17191a;}
.yy-hud-pill button:hover{filter: brightness(.83);}
.yy-hud-wave{position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  width: 48px;
  height: 22px;
  margin: 0 6px;
  transition: width 0.2s var(--hud-ease), margin 0.2s var(--hud-ease), opacity 0.2s var(--hud-ease);}
.yy-hud-pill[data-state="thinking"] .yy-hud-wave,
.yy-hud-pill[data-state="paused"] .yy-hud-wave,
.yy-hud-pill[data-state="closing"] .yy-hud-wave{width: 0;
  margin: 0;
  opacity: 0;}
.yy-hud-wave span{flex-shrink: 0;
  width: 2px;
  border-radius: 2px;
  background: #fff;
  transition: height 80ms linear, opacity 0.25s var(--hud-ease);}
.yy-hud-pill[data-state="armed"] .yy-hud-wave span{opacity: 0.25;}
.yy-hud-pill-label{position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--hud-ease);}
.yy-hud-pill[data-state="thinking"] .yy-hud-pill-label{opacity: 1;}
.yy-hud-pill-word{white-space: nowrap;
  animation: yy-hud-word-in 0.3s cubic-bezier(0.05, 0.6, 0.4, 0.95);}
@keyframes yy-hud-word-in{from {
    opacity: 0;
    transform: translateY(7px);
  }}
.yy-hud-mode{padding: 5px 8px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: radial-gradient(ellipse at 52% 120%, var(--hud-glow), transparent 66%) #22201f;
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;}
.yy-hud-translate{position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 4px 3px 7px;}
.yy-hud-target,
.yy-hud-targets button{color: inherit;
  cursor: pointer;}
.yy-hud-target{display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid #ffffff12;
  border-radius: 7px;
  background: #41403f;}
.yy-hud-target span{overflow: hidden;
  text-overflow: ellipsis;}
.yy-hud-target svg{flex-shrink: 0;}
.yy-hud-targets{position: absolute;
  z-index: 1;
  right: 0;
  bottom: 100%;
  display: grid;
  width: max-content;
  min-width: 148px;
  max-width: min(235px, calc(100vw - 16px));
  max-height: min(126px, calc(100vh - 86px));
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #ffffff24;
  border-radius: 10px;
  background: #252423;}
.yy-hud-targets button{overflow: hidden;
  padding: 4px 7px;
  border-radius: 6px;
  text-align: left;
  text-overflow: ellipsis;}
.yy-hud-targets button:hover,
.yy-hud-targets button[aria-pressed="true"]{background: #474544;}
.yy-hud-targets .yy-hud-edit-targets{margin-bottom: 4px;
  border-bottom: 1px solid #ffffff24;}
.yy-hud-cancelled{display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 5px 0 15px;
  border: 1px solid #ffffff4a;
  border-radius: 999px;
  background: #060707;
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;}
.yy-hud-notice{padding-right: 15px;}
.yy-hud-cancelled button{padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff26;
  color: #fff;
  font-weight: 650;}
.yy-hud-cancelled button:hover{background: #ffffff40;}
.yy-hud-cancelled.yy-hud-countdown{animation:
    yy-hud-rise 0.2s cubic-bezier(0.05, 0.6, 0.4, 0.95),
    yy-hud-notice-out 0.25s ease-in 5s forwards;}
.yy-hud-countdown button{position: relative;}
.yy-hud-undo-ring{position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  overflow: visible;
  pointer-events: none;}
.yy-hud-undo-ring rect{x: 1px;
  y: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  rx: auto;
  ry: 50%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: yy-hud-ring-down 5s linear forwards;}
.yy-hud-countdown:hover,
.yy-hud-countdown:focus-within{animation-play-state: running, paused;}
.yy-hud-countdown:hover .yy-hud-undo-ring rect,
.yy-hud-countdown:focus-within .yy-hud-undo-ring rect{animation-play-state: paused;}
@keyframes yy-hud-ring-down{to { stroke-dashoffset: 100; }}
@keyframes yy-hud-notice-out{to {
    opacity: 0;
    transform: translateY(4px);
  }}
.yy-hud-pill[data-state="thinking"]::after{position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q10 0 20 3 T40 3 V6 H0Z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 40px 6px repeat-x,
    linear-gradient(#fff, #fff) 0 5px / 100% 100% no-repeat;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  transform: translateY(85%);
  animation:
    yy-hud-water-rise 8s ease-out forwards,
    yy-hud-water-wave 1.1s linear infinite;}
@keyframes yy-hud-water-rise{to { transform: translateY(12%); }}
@keyframes yy-hud-water-wave{to { background-position: 40px 0, 0 5px; }}
.yy-hud-mode,
.yy-hud-shortcuts,
.yy-hud-busy,
.yy-hud-cancelled,
.yy-hud-answer,
.yy-hud-message{animation: yy-hud-rise 0.2s cubic-bezier(0.05, 0.6, 0.4, 0.95);}
@keyframes yy-hud-rise{from {
    opacity: 0;
    transform: translateY(6px);
  }}
@media (prefers-reduced-motion: reduce){
.yy-hud-mode,
  .yy-hud-shortcuts,
  .yy-hud-busy,
  .yy-hud-cancelled,
  .yy-hud-answer,
  .yy-hud-message{animation: none;}
.yy-hud-pill[data-state="thinking"]::after{animation: none;
    transform: translateY(50%);}
.yy-hud-cancelled.yy-hud-countdown{animation: yy-hud-notice-out 0.01s linear 5s forwards;}
.yy-hud-cancelled.yy-hud-countdown:hover,
  .yy-hud-cancelled.yy-hud-countdown:focus-within{animation-play-state: paused;}
.yy-hud-tip,
  .yy-hud-pill-word{animation: none;}
.yy-hud-pill,
  .yy-hud-pill::before,
  .yy-hud-pill button,
  .yy-hud-pill-label,
  .yy-hud-pill-paused,
  .yy-hud-pill .yy-hud-actions button,
  .yy-hud-wave,
  .yy-hud-wave span{transition: none !important;}
}
.yy-hud-answer,
.yy-hud-message{border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--bg-modal-sidebar);
  color: var(--text-primary);}
.yy-hud-answer{display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(592px, calc(100vw - 16px));
  height: min(310px, calc(100vh - 20px));
  padding: 10px 12px 12px;}
.yy-hud-answer-brand,
.yy-hud-answer-brand span,
.yy-hud-question,
.yy-hud-answer-card header,
.yy-hud-message header{display: flex;
  align-items: center;
  gap: 8px;}
.yy-hud-answer-brand{position: relative;
  justify-content: center;
  min-height: 29px;
  font-size: 16px;
  font-weight: 700;}
.yy-hud-answer-brand button{position: absolute;
  right: 0;}
.yy-hud-question{padding: 0 5px;
  color: var(--text-secondary);
  font-size: 13px;}
.yy-hud-question p{flex: 1;
  max-height: 60px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;}
.yy-hud-question svg{flex-shrink: 0;}
.yy-hud-answer-card{display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  border-radius: 11px;
  background: var(--bg-card-solid);}
.yy-hud-answer-card header{padding: 7px 11px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 650;}
.yy-hud-answer-card header button,
.yy-hud-message header button{margin-left: auto;}
.yy-hud-answer-source{display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;}
.yy-hud-message p{overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;}
.yy-hud-answer-content{min-height: 0;
  overflow: auto;
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.55;}
.yy-answer-markdown{overflow-wrap: anywhere;}
.yy-answer-markdown > * + *{margin-block-start: 0.75em;}
.yy-answer-markdown p{white-space: pre-line;}
.yy-answer-markdown :is(ul, ol){padding-inline-start: 1.5em;}
.yy-answer-markdown ul{list-style: disc;}
.yy-answer-markdown ol{list-style: decimal;}
.yy-answer-markdown :is(h1, h2, h3, h4, h5, h6){font-weight: 650;}
.yy-answer-markdown blockquote{border-inline-start: 2px solid var(--border-subtle);
  padding-inline-start: 0.75em;}
.yy-answer-markdown pre{overflow-x: auto;}
.yy-hud-icon{display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;}
.yy-hud-icon:hover{background: var(--bg-hover);
  color: var(--text-primary);}
.yy-hud-message{width: min(330px, calc(100vw - 16px));
  padding: 10px 13px;
  font-size: 13px;}
.yy-hud-message header{font-weight: 600;}
.yy-hud-message p{max-height: 124px;
  overflow: auto;
  margin: 4px 0;}
.yy-hud-retry{min-height: 28px;
  margin-top: 5px;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--bg-card-solid);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;}
.yy-hud-retry:hover{background: var(--bg-hover);}
.yy-hud-shortcuts,
.yy-hud-busy{display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #ffffff4a;
  border-radius: 15px;
  background: #060707;
  color: #fff;
  font-size: 12px;}
.yy-hud-shortcut{display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 550;}
.yy-hud-tip{margin: 0;
  padding: 7px 12px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #060707;
  color: #ffffffbf;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  animation:
    yy-hud-rise 0.2s cubic-bezier(0.05, 0.6, 0.4, 0.95),
    yy-hud-notice-out 0.25s ease-in 5.75s forwards;}
.yy-hud-tip-finish{display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0 1px;
  border-radius: 50%;
  background: #fff;
  color: #17191a;
  vertical-align: -1.5px;}
.yy-hud-tip-pause{display: inline-block;
  margin: 0 1px;
  vertical-align: -3.5px;}
.yy-hud-tip kbd,
.yy-hud-shortcut kbd{padding: 3px 7px;
  border: 1px solid #ffffff2e;
  border-radius: 7px;
  background: #ffffff14;
  font-family: inherit;
  font-size: 11px;}
.yy-hud-busy{align-items: center;
  text-align: center;}
.yy-hud-busy strong{font-size: 13px;}
.yy-hud-busy p{margin: 0;
  color: #ffffffb3;}
.yy-hud-busy button{padding: 6px 16px;
  border-radius: 999px;
  background: #ffffff26;
  color: #fff;
  font-weight: 650;}
.yy-hud-busy button:hover{background: #ffffff40;}
