/* Tier C CutGo Float: in-page draggable float (same tab as video / side panel). */
/* Nested fullscreen: Mini is reparented into fullscreenElement so it stays visible. */
:fullscreen #cutgo-mini-controller-float,
:-webkit-full-screen #cutgo-mini-controller-float,
#cutgo-mini-controller-float[data-cutgo-mini-in-fullscreen='1'] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2147483647;
}

#cutgo-mini-controller-float {
  position: fixed;
  z-index: 2147483645;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 280px;
  max-width: calc(100vw - 16px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
  color: #fff;
  pointer-events: auto;
  /* Resting (expanded + capsule): let chrome tips paint outside. Animating clips. */
  overflow: visible;
  user-select: none;
  /* Default; expanded scale uses center (set inline). Collapse anim may override. */
  transform-origin: center center;
}

/* Only clip during the tween — resting capsule must let chrome tips paint outside. */
#cutgo-mini-controller-float.is-animating {
  overflow: hidden;
}

#cutgo-mini-controller-float.is-animating {
  /* Capsule is ~160px; default min-width:280px would clamp WAAPI and snap at finish. */
  min-width: 0 !important;
  will-change: width, height, left, border-radius;
  pointer-events: none;
  /* Width/height/left/radius driven by Web Animations API — avoid per-frame JS pinning. */
  transition: none;
  contain: paint;
  /* Blur is expensive mid-tween and makes timing feel unlike the tuner. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#cutgo-mini-controller-float.is-entering,
#cutgo-mini-controller-float.is-exiting {
  pointer-events: none;
  will-change: opacity, transform;
}

#cutgo-mini-controller-float.is-dragging {
  opacity: 0.96;
  cursor: grabbing;
  will-change: transform;
  transition: none;
}

#cutgo-mini-controller-float.is-resizing {
  opacity: 0.98;
  will-change: transform;
  transition: none;
}

/* Invisible corner hit targets — keep tiny so × / 设置 are not stolen. */
#cutgo-mini-controller-float .cutgo-mini-float-resize-handles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

#cutgo-mini-controller-float .cutgo-mini-float-resize {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: auto;
  touch-action: none;
  background: transparent;
}

#cutgo-mini-controller-float .cutgo-mini-float-resize-nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}

#cutgo-mini-controller-float .cutgo-mini-float-resize-ne {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}

#cutgo-mini-controller-float .cutgo-mini-float-resize-sw {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
}

#cutgo-mini-controller-float .cutgo-mini-float-resize-se {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
}

/* Chrome + settings sit above corner grips so clicks hit the button, not resize. */
#cutgo-mini-controller-float .cutgo-mini-float-actions,
#cutgo-mini-controller-float [data-action='settings'] {
  position: relative;
  z-index: 8;
}

#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-resize-handles,
#cutgo-mini-controller-float.is-animating .cutgo-mini-float-resize-handles {
  display: none !important;
}

#cutgo-mini-controller-float.is-collapsed {
  min-width: 0 !important;
  max-width: calc(100vw - 16px);
  width: max-content;
  border-radius: 999px;
  /* Capsule is never user-scaled; expand restores session scale. */
  transform: none !important;
  /* Distinct from corner green badge: dark bar + lime edge, not a green pill. */
  border: 1px solid rgba(163, 230, 53, 0.42);
  background: rgba(18, 20, 18, 0.94);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 0 0.5px rgba(255, 255, 255, 0.05) inset,
    0 0 18px rgba(163, 230, 53, 0.12);
}

#cutgo-mini-controller-float.is-collapsed:not(.is-animating) {
  width: max-content !important;
  min-width: 168px;
}

#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-name {
  font-size: 11px;
  letter-spacing: 0.04em;
}

#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-time {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

#cutgo-mini-controller-float .cutgo-mini-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  padding: 3px 6px 3px 8px;
  cursor: grab;
  touch-action: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  flex: 0 0 auto;
}

#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-head {
  justify-content: flex-start;
  width: max-content;
  max-width: none;
  min-height: 30px;
  padding: 3px 5px 3px 8px;
  border-bottom-color: transparent;
  background: transparent;
  gap: 6px;
}

#cutgo-mini-controller-float.is-dragging .cutgo-mini-float-head {
  cursor: grabbing;
}

#cutgo-mini-controller-float .cutgo-mini-float-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: 600 11px/1.15 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

#cutgo-mini-controller-float .cutgo-mini-float-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.22);
  flex: 0 0 auto;
}

#cutgo-mini-controller-float .cutgo-mini-float-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cutgo-mini-controller-float .cutgo-mini-float-time {
  flex: 0 0 auto;
  margin-left: 2px;
  font: 300 11px/1 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'zero' 0;
  color: rgba(255, 255, 255, 0.88);
}

#cutgo-mini-controller-float .cutgo-mini-float-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

#cutgo-mini-controller-float .cutgo-mini-float-close {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  flex: 0 0 auto;
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cutgo-mini-controller-float .cutgo-mini-float-close-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

#cutgo-mini-controller-float .cutgo-mini-float-fold[hidden],
#cutgo-mini-controller-float .cutgo-mini-float-expand[hidden],
#cutgo-mini-controller-float .cutgo-mini-float-time[hidden] {
  display: none !important;
}

/* Fold ∨ / expand ∧ — 22 hit, 16 painted circle so it sits with the 14px close X. */
#cutgo-mini-controller-float .cutgo-mini-float-fold,
#cutgo-mini-controller-float .cutgo-mini-float-expand {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: transparent;
  color: #d9f99d;
  cursor: pointer;
  flex: 0 0 auto;
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#cutgo-mini-controller-float .cutgo-mini-float-fold::before,
#cutgo-mini-controller-float .cutgo-mini-float-expand::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.12);
  pointer-events: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

#cutgo-mini-controller-float .cutgo-mini-float-fold-icon,
#cutgo-mini-controller-float .cutgo-mini-float-expand-icon {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

#cutgo-mini-controller-float .cutgo-mini-float-fold:hover,
#cutgo-mini-controller-float .cutgo-mini-float-expand:hover {
  color: #ecfccb;
}

#cutgo-mini-controller-float .cutgo-mini-float-fold:hover::before,
#cutgo-mini-controller-float .cutgo-mini-float-expand:hover::before {
  background: rgba(163, 230, 53, 0.22);
  border-color: rgba(163, 230, 53, 0.5);
}

#cutgo-mini-controller-float .cutgo-mini-float-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#cutgo-mini-controller-float .cutgo-mini-float-expand {
  animation: cutgo-mini-expand-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Keep toggle geometry stable while width/left are being pinned to screen. */
#cutgo-mini-controller-float.is-animating .cutgo-mini-float-expand {
  animation: none;
}

@keyframes cutgo-mini-expand-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-close {
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

#cutgo-mini-controller-float .cutgo-mini-float-body {
  padding: 2px 6px 6px;
  pointer-events: auto;
  user-select: none;
  overflow: visible;
  max-height: 520px;
  opacity: 1;
  /* Uniform scale (WAAPI) — not scaleY; origin matches Animista TR / tuner. */
  transform: none;
  transform-origin: 100% 0%;
}

/*
 * During shell width/height WAAPI, park body out of flow so host height is driven
 * only by the animation (same model as the mini collapse tuner preview).
 * Freeze body width (--cutgo-mini-body-w) and pin to the right so the transport
 * does not reflow while the shell shrinks — only TR scale + shell clip, like the tuner.
 * data-cutgo-mini-measure=1 temporarily restores flow to sample expanded height.
 */
#cutgo-mini-controller-float.is-animating:not(.is-collapsed):not([data-cutgo-mini-measure='1'])
  .cutgo-mini-float-body {
  position: absolute;
  left: auto;
  right: 0;
  top: var(--cutgo-mini-head-h, 34px);
  width: var(--cutgo-mini-body-w, 100%);
  max-width: none;
  max-height: none;
  visibility: visible;
  padding: 2px 6px 6px;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 100% 0%;
}

#cutgo-mini-controller-float.is-animating:not(.is-collapsed):not([data-cutgo-mini-measure='1'])
  #cutgo-page-transport {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/*
 * Critical: while collapsed, pull the transport out of normal flow.
 * Otherwise #cutgo-page-transport (~720px) inflates the capsule's max-content width.
 */
#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-body,
#cutgo-mini-controller-float.is-animating.is-collapsed .cutgo-mini-float-body {
  position: absolute;
  left: 0;
  top: 0;
  width: min(980px, calc(100vw - 24px));
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

#cutgo-mini-controller-float.is-collapsed #cutgo-page-transport {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/*
 * Mini sits under a title bar: default transport tips open upward and get clipped.
 * Flip them below the control so they stay readable inside the float.
 */
#cutgo-mini-controller-float #cutgo-page-transport [data-cutgo-tip]::after {
  bottom: auto !important;
  top: calc(100% + 7px) !important;
  transform: translate(-50%, -2px) !important;
  z-index: 40 !important;
}

#cutgo-mini-controller-float #cutgo-page-transport [data-cutgo-tip]:hover::after {
  transform: translate(-50%, 0) !important;
}

#cutgo-mini-controller-float #cutgo-page-transport {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: auto !important;
  overflow: visible !important;
  /* Independent of page-transport play/pause / site-modal suppress opacity. */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Slightly tighter Mini transport chrome — shell already adds a title row. */
#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller.is-pr-insert {
  gap: 2px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-toolbar-row,
#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-meta-row,
#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-clock-row {
  min-height: 0;
}

#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-track-wrap,
#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-ruler,
#cutgo-mini-controller-float #cutgo-page-transport.is-mini-controller .cpt-lane {
  margin-top: 0;
}

/* Float chrome tips — same dark chip as page-transport [data-cutgo-tip]. */
#cutgo-mini-controller-float [data-cutgo-tip] {
  position: relative;
}

#cutgo-mini-controller-float [data-cutgo-tip]::after {
  content: attr(data-cutgo-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translate(-50%, 2px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 16, 0.96);
  color: rgba(245, 245, 247, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  font: 650 10px/1.2 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  white-space: nowrap;
  /* Match transport tip: appear almost immediately on hover. */
  transition:
    opacity 0.06s ease,
    transform 0.06s ease,
    visibility 0.06s ease;
}

#cutgo-mini-controller-float [data-cutgo-tip]:hover::after,
#cutgo-mini-controller-float [data-cutgo-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Drag tip follows pointer X (--cutgo-drag-tip-x from content-mini-float.js). */
#cutgo-mini-controller-float .cutgo-mini-float-head[data-cutgo-tip]::after {
  left: var(--cutgo-drag-tip-x, 24px);
  transform: translate(-50%, 2px);
  /* X tracks the pointer; only fade/slide vertically. */
  transition:
    opacity 0.06s ease,
    transform 0.06s ease,
    visibility 0.06s ease;
}

#cutgo-mini-controller-float .cutgo-mini-float-head[data-cutgo-tip]:hover::after,
#cutgo-mini-controller-float .cutgo-mini-float-head[data-cutgo-tip]:focus-visible::after {
  transform: translate(-50%, 0);
}

/* Don't show “拖动…” while hovering fold / expand / close, or while dragging. */
#cutgo-mini-controller-float
  .cutgo-mini-float-head[data-cutgo-tip]:has(.cutgo-mini-float-actions:hover)::after,
#cutgo-mini-controller-float.is-dragging .cutgo-mini-float-head[data-cutgo-tip]::after,
html.cutgo-mini-dragging #cutgo-mini-controller-float .cutgo-mini-float-head[data-cutgo-tip]::after {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Capsule chrome tips — keep above the pill; expand tip short enough to fit. */
#cutgo-mini-controller-float.is-collapsed .cutgo-mini-float-actions [data-cutgo-tip]::after {
  z-index: 60;
}

/* Legacy portal tip (removed) — hide if an old inject left one behind. */
#cutgo-mini-float-tip {
  display: none !important;
}

/* While dragging / resizing Mini, freeze transport hit-testing so the timeline can't steal the gesture. */
html.cutgo-mini-dragging,
html.cutgo-mini-dragging *,
html.cutgo-mini-resizing,
html.cutgo-mini-resizing * {
  user-select: none !important;
}

html.cutgo-mini-dragging,
html.cutgo-mini-dragging * {
  cursor: grabbing !important;
}

html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='nw'],
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='nw'] *,
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='se'],
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='se'] * {
  cursor: nwse-resize !important;
}

html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='ne'],
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='ne'] *,
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='sw'],
html.cutgo-mini-resizing[data-cutgo-mini-resize-corner='sw'] * {
  cursor: nesw-resize !important;
}

html.cutgo-mini-dragging #cutgo-mini-controller-float .cutgo-mini-float-body,
html.cutgo-mini-dragging #cutgo-page-transport,
html.cutgo-mini-dragging #cutgo-transport-hover-zone,
html.cutgo-mini-dragging #cpt-pr-toolstrip,
html.cutgo-mini-resizing #cutgo-mini-controller-float .cutgo-mini-float-body,
html.cutgo-mini-resizing #cutgo-page-transport,
html.cutgo-mini-resizing #cutgo-transport-hover-zone,
html.cutgo-mini-resizing #cpt-pr-toolstrip {
  pointer-events: none !important;
}

#cutgo-open-wrap {
  position: fixed;
  z-index: 2147483646;
  display: none;
  align-items: stretch;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(18, 18, 20, 0.27);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.1),
    0 0 0 0.5px rgba(255, 255, 255, 0.02) inset;
  transition:
    background 0.18s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: auto;
}

/* Insert bar ↔ recall chip: driven by html[data-cutgo-ui-phase], not a local timer. */
html[data-cutgo-ui-phase='hiding'] #cutgo-open-wrap,
html[data-cutgo-ui-phase='hidden'] #cutgo-open-wrap {
  opacity: 1;
  transform: scale(1);
}
html[data-cutgo-ui-phase='showing'] #cutgo-open-wrap,
html[data-cutgo-ui-phase='visible'] #cutgo-open-wrap {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-cutgo-ui-phase] #cutgo-open-wrap {
    transition: background 0.18s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  }
}
#cutgo-open-wrap[data-cutgo-coach-boost='1'] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
  background: rgba(18, 18, 20, 0.94);
  border-color: rgba(163, 230, 53, 0.42);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(163, 230, 53, 0.28) inset;
}

#cutgo-open-wrap[data-cutgo-coach-boost='1'] #cutgo-open-btn {
  background: rgba(163, 230, 53, 0.28) !important;
  color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.35);
}

#cutgo-open-wrap[data-cutgo-coach-boost='1'] #cutgo-open-btn .cutgo-brand {
  color: rgba(255, 255, 255, 0.98) !important;
}

#cutgo-open-wrap[data-cutgo-coach-boost='1'] #cutgo-open-btn .dot {
  opacity: 1 !important;
  background: #a3e635;
  box-shadow:
    0 0 5px rgba(163, 230, 53, 1),
    0 0 10px rgba(163, 230, 53, 0.7);
}

#cutgo-open-wrap #cutgo-open-btn {
  background: rgba(163,230,53, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

#cutgo-open-wrap #cutgo-open-btn .cutgo-brand {
  color: rgba(255, 255, 255, 0.5);
}

#cutgo-open-wrap #cutgo-open-btn .cutgo-dest {
  color: rgba(255, 255, 255, 0.3);
}

#cutgo-open-wrap #cutgo-open-dismiss {
  color: rgba(255, 255, 255, 0.2);
}

#cutgo-open-wrap.is-clear {
  background: rgba(18, 18, 20, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    0 0 0 0.5px rgba(255, 255, 255, 0.05) inset;
}

#cutgo-open-wrap:hover,
#cutgo-open-wrap:focus-within {
  background: rgba(18, 18, 20, 0.78);
  border-color: rgba(163,230,53, 0.16);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    0 0 0 0.5px rgba(163,230,53, 0.08) inset;
}

#cutgo-open-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px 0 5px;
  margin: 0;
  border: none;
  border-radius: 4px 0 0 4px;
  background: rgba(163,230,53, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font: 650 9px/1 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    color 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}

#cutgo-open-btn .cutgo-dest {
  display: none;
}

#cutgo-open-wrap.is-clear #cutgo-open-btn,
#cutgo-open-wrap:hover #cutgo-open-btn,
#cutgo-open-wrap:focus-within #cutgo-open-btn {
  background: rgba(163,230,53, 0.18);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(163,230,53, 0.22);
}

#cutgo-open-wrap.is-clear #cutgo-open-btn .cutgo-brand,
#cutgo-open-wrap:hover #cutgo-open-btn .cutgo-brand,
#cutgo-open-wrap:focus-within #cutgo-open-btn .cutgo-brand {
  color: rgba(255, 255, 255, 0.96);
}

#cutgo-open-wrap.is-clear #cutgo-open-btn .cutgo-dest,
#cutgo-open-wrap:hover #cutgo-open-btn .cutgo-dest,
#cutgo-open-wrap:focus-within #cutgo-open-btn .cutgo-dest {
  color: rgba(255, 255, 255, 0.58);
}

#cutgo-open-btn:hover {
  background: rgba(163,230,53, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(163,230,53, 0.32),
    0 0 10px rgba(163,230,53, 0.12);
}

#cutgo-open-btn:active {
  background: rgba(163,230,53, 0.16);
}

#cutgo-open-btn .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #A3E635;
  flex-shrink: 0;
  box-shadow:
    0 0 4px rgba(163,230,53, 0.95),
    0 0 8px rgba(163,230,53, 0.55);
  opacity: 1;
}

#cutgo-open-btn .cutgo-brand {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
}

#cutgo-open-btn .cutgo-dest {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
}

#cutgo-open-btn[data-warning='1'] {
  background: rgba(255, 159, 10, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.18);
}

#cutgo-open-btn[data-warning='1']:hover {
  background: rgba(255, 159, 10, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 159, 10, 0.28),
    0 0 10px rgba(255, 159, 10, 0.1);
}

#cutgo-open-btn[data-warning='1'] .dot {
  background: #ff9f0a;
  box-shadow:
    0 0 4px rgba(255, 159, 10, 0.95),
    0 0 8px rgba(255, 159, 10, 0.55);
  opacity: 1;
}

#cutgo-open-btn[data-cutgo-tip]::after {
  content: attr(data-cutgo-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 24, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245, 245, 247, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font: 600 9px/1.35 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  white-space: nowrap;
  transition: opacity 0.08s ease, visibility 0.08s ease, transform 0.08s ease;
  transform: translateY(-2px);
}

#cutgo-open-btn[data-cutgo-tip]:hover::after,
#cutgo-open-wrap:hover #cutgo-open-btn[data-cutgo-tip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#cutgo-open-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 4px 4px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

#cutgo-open-wrap:hover #cutgo-open-dismiss,
#cutgo-open-wrap:focus-within #cutgo-open-dismiss {
  color: rgba(255, 255, 255, 0.62);
}

#cutgo-open-dismiss:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.05);
}

#cutgo-trial-toast {
  position: fixed;
  z-index: 2147483643;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(8px);
  max-width: min(92vw, 420px);
  padding: 9px 14px 9px 12px;
  border-radius: 9px;
  background: rgba(28, 28, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245, 245, 247, 0.9);
  font: 600 11px/1.45 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#cutgo-trial-toast::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 6px rgba(10, 132, 255, 0.65);
  vertical-align: middle;
}

#cutgo-trial-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
