/* 计时小猫：全局悬浮球 + 接单进度面板 */
.cat-timer-root {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  pointer-events: none;
  font-family: inherit;
}
.cat-timer-root[hidden] { display: none; }
.cat-timer-ball {
  position: fixed;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 2px solid rgba(175, 215, 255, .7);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #fff, #dce9ff 58%, #8fb7f2);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .46),
    0 0 0 5px rgba(92, 157, 255, .12),
    0 0 28px rgba(97, 196, 255, .32);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  overflow: visible;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-timer-ball:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 6px rgba(92, 157, 255, .16), 0 0 38px rgba(97, 196, 255, .45); }
.cat-timer-ball.is-dragging { cursor: grabbing; transition: none; }
.cat-timer-ball.is-open { box-shadow: 0 18px 42px rgba(0, 0, 0, .46), 0 0 0 6px rgba(120, 236, 166, .18), 0 0 40px rgba(82, 240, 141, .38); }
.cat-timer-ball > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  pointer-events: none;
  transform: scale(1.12);
}
.cat-timer-ball-halo {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(105, 236, 255, .8), transparent 45%, rgba(120, 255, 167, .75), transparent 78%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: cat-halo-spin 5.5s linear infinite;
  pointer-events: none;
}
@keyframes cat-halo-spin { to { transform: rotate(360deg); } }
.cat-timer-ball-dot {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0b1322;
  background: #64ef8f;
  box-shadow: 0 0 14px rgba(100, 239, 143, .9);
}
.cat-timer-ball-label {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(8, 15, 30, .9);
  border: 1px solid rgba(126, 168, 235, .36);
  color: #b9d0f8;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* 只跟随右下角个人胶囊的自动计时窗：不再额外占用一个悬浮球。 */
.cat-timer-mini {
  position: fixed;
  right: 24px;
  bottom: 112px;
  z-index: 6;
  width: 296px;
  max-width: calc(100vw - 32px);
  pointer-events: auto;
  transition: bottom .22s ease, opacity .18s ease;
}
.cat-timer-mini[hidden] { display: none !important; }
body.gchat-panel-open .cat-timer-mini { display: none !important; }
.cat-timer-mini-card {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(103, 255, 155, .42);
  border-radius: 20px;
  padding: 13px 15px 12px;
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(103, 255, 155, .13), transparent 70%),
    linear-gradient(145deg, rgba(11, 24, 27, .98), rgba(4, 10, 16, .99));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, .52),
    0 0 30px rgba(103, 255, 155, .08),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f4fff8;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cat-timer-mini-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, #67ff9b 24%, #67ff9b 76%, transparent);
  content: "";
  box-shadow: 0 0 18px rgba(103, 255, 155, .55);
}
.cat-timer-mini-card:hover,
.cat-timer-mini-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(103, 255, 155, .72);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, .6),
    0 0 36px rgba(103, 255, 155, .16),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  outline: none;
}
.cat-timer-mini-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.cat-timer-mini-top b {
  overflow: hidden;
  color: #ecfff3;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-top em {
  margin-left: auto;
  border: 1px solid rgba(103, 255, 155, .22);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(103, 255, 155, .08);
  color: #9affbb;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.cat-timer-mini-live {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #67ff9b;
  box-shadow: 0 0 0 4px rgba(103, 255, 155, .12), 0 0 14px rgba(103, 255, 155, .75);
  animation: cat-mini-live 1.6s ease-in-out infinite;
}
.cat-timer-mini-clock {
  margin-top: 1px;
  color: #ffffff;
  font-size: 32.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(103, 255, 155, .22);
}
.cat-timer-mini-meta {
  overflow: hidden;
  color: rgba(218, 239, 228, .72);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-list {
  display: grid;
  max-height: 224px;
  gap: 6px;
  overflow-y: auto;
  margin: 2px 0 1px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 255, 155, .3) transparent;
}
.cat-timer-mini-list[hidden] { display: none; }
.cat-timer-mini-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(120, 255, 169, .13);
  border-radius: 12px;
  padding: 7px 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}
.cat-timer-mini-row.is-expired {
  border-color: rgba(255, 106, 95, .36);
  background: rgba(255, 98, 84, .08);
}
.cat-timer-mini-row.is-paused { border-color: rgba(255, 195, 92, .3); }
.cat-timer-mini-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 255, 183, .28);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(99, 255, 166, .18), rgba(72, 142, 255, .14));
  color: #eafff2;
  font-size: 14px;
  font-weight: 900;
}
.cat-timer-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cat-timer-mini-person { display: grid; min-width: 0; flex: 1; gap: 2px; text-align: left; }
.cat-timer-mini-person b {
  overflow: hidden;
  color: #f1fff6;
  font-size: 12.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-person small {
  overflow: hidden;
  color: rgba(205, 232, 218, .58);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-row > em {
  flex: 0 0 auto;
  color: #99ffbb;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .035em;
}
.cat-timer-mini-row.is-expired > em { color: #ffb2aa; }
.cat-timer-mini-row.is-paused > em { color: #ffd580; }
.cat-timer-mini.is-multi .cat-timer-mini-clock,
.cat-timer-mini.is-multi .cat-timer-mini-meta,
.cat-timer-mini.is-multi .cat-timer-mini-track { display: none; }
.cat-timer-mini-track {
  display: block;
  height: 4px;
  overflow: hidden;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.cat-timer-mini-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3adc78, #a9ffbf);
  box-shadow: 0 0 12px rgba(103, 255, 155, .55);
  transition: width .65s linear;
}
.cat-timer-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1px;
}
.cat-timer-mini-foot small {
  overflow: hidden;
  color: rgba(154, 255, 187, .76);
  font-size: 12.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-foot b {
  flex: 0 0 auto;
  color: #eaffef;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .04em;
}
.cat-timer-mini.is-paused .cat-timer-mini-live { animation: none; background: #ffc35c; box-shadow: 0 0 0 4px rgba(255, 195, 92, .12), 0 0 14px rgba(255, 195, 92, .6); }
.cat-timer-mini.is-paused .cat-timer-mini-card { border-color: rgba(255, 195, 92, .42); }
.cat-timer-mini.is-expired .cat-timer-mini-card {
  border-color: rgba(255, 104, 93, .58);
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(255, 91, 80, .16), transparent 70%),
    linear-gradient(145deg, rgba(35, 15, 18, .98), rgba(12, 6, 10, .99));
}
.cat-timer-mini.is-expired .cat-timer-mini-card::before { background: linear-gradient(180deg, transparent, #ff6a5f 24%, #ff6a5f 76%, transparent); box-shadow: 0 0 18px rgba(255, 106, 95, .55); }
.cat-timer-mini.is-expired .cat-timer-mini-live { background: #ff6a5f; box-shadow: 0 0 0 4px rgba(255, 106, 95, .13), 0 0 16px rgba(255, 106, 95, .8); }
.cat-timer-mini.is-expired .cat-timer-mini-track i { background: linear-gradient(90deg, #ff5f55, #ffb16b); }
.cat-timer-mini.is-expired .cat-timer-mini-foot small,
.cat-timer-mini.is-expired .cat-timer-mini-top em { color: #ffb8b1; border-color: rgba(255, 106, 95, .28); background: rgba(255, 106, 95, .09); }
.cat-timer-mini.is-new { animation: cat-mini-in .42s cubic-bezier(.2, .9, .2, 1.14); }

@keyframes cat-mini-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .58; transform: scale(.82); }
}
@keyframes cat-mini-in {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 761px) {
  body[data-app-view]:has(#account-home-button:hover) .cat-timer-mini,
  body[data-app-view]:has(#account-home-button:focus-visible) .cat-timer-mini { bottom: 204px; }
}
@media (max-width: 760px) {
  .cat-timer-mini {
    display: block !important;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 20px));
  }
  .cat-timer-mini-card {
    gap: 4px;
    padding: 11px 12px 10px;
    border-radius: 18px;
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
  }
  .cat-timer-mini-clock { font-size: 29px; }
  .cat-timer-mini-list { max-height: 30vh; }
}

.cat-timer-panel {
  position: fixed;
  right: 26px;
  bottom: 98px;
  width: min(980px, calc(100vw - 40px));
  height: min(620px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  color: #eef4ff;
  border: 1px solid rgba(114, 155, 232, .42);
  border-radius: 26px;
  background:
    radial-gradient(680px 420px at 18% 20%, rgba(53, 93, 210, .22), transparent 65%),
    radial-gradient(520px 360px at 92% 86%, rgba(97, 58, 205, .24), transparent 70%),
    linear-gradient(150deg, rgba(13, 21, 41, .985), rgba(5, 9, 20, .99));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .035) inset, 0 0 70px rgba(75, 111, 255, .14);
  animation: cat-panel-in .22s cubic-bezier(.2, .8, .2, 1);
}
.cat-timer-panel[hidden] { display: none; }
@keyframes cat-panel-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.cat-timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid rgba(135, 167, 223, .14);
  background: rgba(8, 14, 28, .55);
}
.cat-timer-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cat-timer-head-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #8ef3b0;
  background: rgba(91, 237, 145, .1);
  border: 1px solid rgba(113, 238, 161, .25);
  font-size: 16px;
}
.cat-timer-head-title strong { display: block; color: #f4f8ff; font-size: 16px; letter-spacing: .03em; }
.cat-timer-head-title small { display: block; margin-top: 2px; color: #7d8ba8; font-size: 12.5px; }
.cat-timer-head-actions { display: flex; align-items: center; gap: 5px; }
.cat-timer-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #b5c4df;
  font-size: 18.5px;
  cursor: pointer;
  transition: .16s ease;
}
.cat-timer-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(160, 187, 235, .2); }
.cat-timer-icon-btn.is-close:hover { color: #fff; background: rgba(222, 67, 67, .3); border-color: rgba(255, 125, 125, .35); }
.cat-timer-icon-btn.is-spinning { animation: cat-spin 1s linear infinite; }
@keyframes cat-spin { to { transform: rotate(360deg); } }
.cat-timer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.cat-timer-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding: 14px 18px 18px;
  overflow: hidden;
  border-right: 1px solid rgba(135, 167, 223, .13);
  background: linear-gradient(180deg, rgba(22, 37, 73, .48), rgba(7, 12, 24, .3));
}
.cat-timer-hero-glow {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 187, 255, .28), rgba(84, 90, 235, .12) 45%, transparent 70%);
  filter: blur(8px);
}
.cat-timer-hero img {
  position: relative;
  width: min(270px, 92%);
  max-height: 330px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 52%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 52%, #000 58%, transparent 100%);
  user-select: none;
  pointer-events: none;
}
.cat-timer-clock-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  margin-top: -8px;
  padding: 10px 14px;
  border: 1px solid rgba(140, 166, 216, .34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 67, 87, .96), rgba(27, 33, 48, .98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.cat-timer-clock-card span { color: #fff; font-size: 35.5px; font-weight: 900; letter-spacing: .05em; font-variant-numeric: tabular-nums; line-height: 1; }
.cat-timer-clock-card b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8c99b0;
  font-size: 12.5px;
  white-space: nowrap;
}
.cat-timer-clock-card b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #59657b; }
.cat-timer-clock-card b.is-live { color: #a6ffc0; }
.cat-timer-clock-card b.is-live::before { background: #64ef8f; box-shadow: 0 0 10px rgba(100, 239, 143, .9); }
.cat-timer-hero > p { position: relative; margin: 10px 0 4px; color: #96a5c1; font-size: 12.5px; text-align: center; line-height: 1.5; }
.cat-timer-hero-tip { position: relative; color: #65738d; font-size: 12.5px; letter-spacing: .04em; }
.cat-timer-orders {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 138, 184, .5) transparent;
}
.cat-timer-group { display: flex; flex-direction: column; gap: 9px; }
.cat-timer-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 3px; }
.cat-timer-group-head span { display: flex; align-items: center; gap: 8px; color: #dce6f8; font-size: 14px; font-weight: 800; }
.cat-timer-group-head i { width: 7px; height: 7px; border-radius: 50%; }
.cat-timer-group-head i.is-companion { background: #62ed93; box-shadow: 0 0 10px rgba(98, 237, 147, .7); }
.cat-timer-group-head i.is-boss { background: #b992ff; box-shadow: 0 0 10px rgba(185, 146, 255, .7); }
.cat-timer-group-head b { min-width: 23px; height: 20px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #aebbd3; font-size: 12.5px; }
.cat-timer-list { display: flex; flex-direction: column; gap: 8px; }
.cat-order-card {
  display: flex;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(111, 145, 208, .2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(24, 39, 76, .74), rgba(12, 21, 42, .8));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  transition: border-color .16s ease, transform .16s ease;
}
.cat-order-card:hover { border-color: rgba(116, 180, 255, .45); transform: translateY(-1px); }
.cat-order-card.is-paused { border-color: rgba(255, 193, 92, .35); background: linear-gradient(135deg, rgba(60, 45, 25, .55), rgba(24, 20, 15, .75)); }
.cat-order-card.is-expired { border-color: rgba(255, 111, 86, .48); background: linear-gradient(135deg, rgba(67, 29, 27, .64), rgba(25, 15, 18, .82)); }
.cat-order-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, hsl(var(--cat-avatar-hue) 65% 58%), hsl(calc(var(--cat-avatar-hue) + 42) 70% 42%));
  color: #fff;
  font-size: 18.5px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.cat-order-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cat-order-main { flex: 1; min-width: 0; }
.cat-order-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-order-title strong { color: #f1f6ff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-order-state { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; background: rgba(94, 235, 143, .12); border: 1px solid rgba(94, 235, 143, .28); color: #86f0a8; font-size: 12.5px; font-weight: 800; }
.cat-order-state.is-paused { background: rgba(255, 193, 92, .12); border-color: rgba(255, 193, 92, .3); color: #ffd28a; }
.cat-order-card.is-expired .cat-order-state { background: rgba(255, 111, 86, .12); border-color: rgba(255, 111, 86, .34); color: #ffb0a1; }
.cat-order-main > p { margin: 4px 0 8px; color: #7d8ca8; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-order-progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cat-order-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd445, #ffe993); box-shadow: 0 0 12px rgba(255, 215, 77, .38); transition: width .35s linear; }
.cat-order-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cat-order-foot b { color: #f6f9ff; font-size: 16px; font-variant-numeric: tabular-nums; }
.cat-order-foot small { color: #7f8da7; font-size: 12.5px; }
.cat-order-recharge {
  margin-top: 8px;
  border: 1px solid rgba(255, 186, 74, .38);
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(255, 186, 74, .09);
  color: #ffd078;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.cat-order-recharge:hover { border-color: rgba(255, 205, 117, .68); background: rgba(255, 186, 74, .16); color: #fff0c5; }
.cat-order-empty {
  padding: 22px 14px;
  text-align: center;
  border: 1px dashed rgba(117, 145, 195, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.cat-order-empty strong { display: block; color: #9eacc5; font-size: 12.5px; }
.cat-order-empty span { display: block; margin-top: 4px; color: #65728a; font-size: 12.5px; }
.cat-timer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 18px;
  border-top: 1px solid rgba(135, 167, 223, .12);
  background: rgba(5, 10, 20, .55);
}
.cat-timer-foot > span { color: #6f7d96; font-size: 12.5px; }
.cat-timer-go { border: 0; background: transparent; color: #8cc7ff; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cat-timer-go:hover { color: #b8ddff; }
@media (max-width: 860px) {
  .cat-timer-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 22px; }
  .cat-timer-body { grid-template-columns: 1fr; overflow-y: auto; }
  .cat-timer-hero { min-height: 290px; border-right: 0; border-bottom: 1px solid rgba(135, 167, 223, .13); }
  .cat-timer-hero img { max-height: 200px; width: 190px; }
  .cat-timer-orders { overflow: visible; padding: 14px; }
}
@media (max-width: 520px) {
  .cat-timer-ball { width: 68px; height: 68px; }
  .cat-timer-clock-card span { font-size: 30px; }
  .cat-timer-head-title small { display: none; }
  .cat-timer-foot > span { display: none; }
}

/* 已并入聊天浮窗：不再单独显示第二个悬浮球。 */
.cat-timer-ball { display: none !important; }
.cat-timer-panel.is-embedded {
  position: relative !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  min-height: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(620px 380px at 18% 18%, rgba(53, 93, 210, .18), transparent 66%),
    radial-gradient(460px 320px at 92% 88%, rgba(97, 58, 205, .18), transparent 70%),
    transparent;
  box-shadow: none;
  animation: none;
}
.cat-timer-panel.is-embedded .cat-timer-head {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: rgba(8, 14, 28, .28);
}
.cat-timer-panel.is-embedded #cat-timer-minimize { display: none; }
.cat-timer-panel.is-embedded .cat-timer-head-note { color: #6f82a5; }
@media (max-width: 860px) {
  .cat-timer-panel.is-embedded { height: 100% !important; }
  .cat-timer-panel.is-embedded .cat-timer-body { overflow-y: auto; }
}

/* 待老板确认 / 待陪玩确认 / 结束结算：固定在右下角计时器位置 */
.cat-timer-mini-alerts {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  margin-bottom: 10px;
  overflow-y: auto;
}
.cat-timer-mini-alerts[hidden] { display: none !important; }
.cat-timer-mini-card[hidden] { display: none !important; }
.cat-timer-mini-alert {
  border: 1px solid rgba(255, 190, 84, 0.46);
  border-radius: 18px;
  padding: 11px 12px;
  background:
    radial-gradient(220px 100px at 100% 0%, rgba(255, 193, 92, 0.16), transparent 70%),
    linear-gradient(150deg, rgba(27, 19, 8, 0.98), rgba(9, 8, 5, 0.99));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff7ea;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.cat-timer-mini-alert.is-companion {
  border-color: rgba(255, 158, 64, 0.56);
  background:
    radial-gradient(220px 100px at 100% 0%, rgba(255, 146, 54, 0.18), transparent 70%),
    linear-gradient(150deg, rgba(31, 17, 6, 0.99), rgba(10, 8, 4, 0.99));
}
.cat-timer-mini-alert.is-waiting {
  border-color: rgba(126, 168, 235, 0.34);
  background: linear-gradient(150deg, rgba(10, 18, 31, 0.98), rgba(5, 9, 16, 0.99));
}
.cat-timer-mini-alert.is-ended {
  border-color: rgba(255, 116, 92, 0.52);
  background:
    radial-gradient(220px 100px at 100% 0%, rgba(255, 108, 84, 0.18), transparent 70%),
    linear-gradient(150deg, rgba(31, 11, 9, 0.99), rgba(11, 6, 6, 0.99));
}
.cat-timer-mini-alert.is-ended .cat-timer-mini-alert-title small {
  line-height: 1.55;
  white-space: normal;
}
.cat-timer-mini-alert-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cat-timer-mini-alert-title {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.cat-timer-mini-alert-title b {
  color: #fff3df;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.cat-timer-mini-alert-title small {
  overflow: hidden;
  color: rgba(255, 226, 190, 0.68);
  font-size: 12.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-alert-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 200, 110, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 186, 72, 0.12);
  color: #ffd18b;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.cat-timer-mini-alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.cat-timer-mini-alert-actions button {
  flex: 1;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffd9bf;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.cat-timer-mini-alert-actions button.is-primary {
  border-color: rgba(255, 186, 72, 0.7);
  background: linear-gradient(135deg, #ffc25c, #ff901f);
  box-shadow: 0 8px 20px rgba(255, 145, 32, 0.28);
  color: #1d1000;
}
.cat-timer-mini-alert-actions button.is-warn {
  border-color: rgba(255, 132, 100, 0.66);
  background: linear-gradient(135deg, rgba(255, 126, 92, 0.98), rgba(226, 62, 44, 0.98));
  box-shadow: 0 8px 20px rgba(255, 78, 54, 0.24);
  color: #220703;
}
.cat-timer-mini-alert-note {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 160, 130, 0.42);
  border-radius: 11px;
  padding: 8px 10px;
  color: #ffc2b2;
  font-size: 12.5px;
  font-weight: 800;
}
.cat-timer-mini-alert-actions button:disabled,
.cat-timer-mini-action button:disabled { opacity: 0.55; cursor: wait; }
.cat-timer-mini-actions {
  display: grid;
  gap: 8px;
  max-height: 34vh;
  margin-top: 10px;
  overflow-y: auto;
}
.cat-timer-mini-actions[hidden] { display: none !important; }
.cat-timer-mini-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(103, 255, 155, 0.28);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(5, 18, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cat-timer-mini-action span {
  overflow: hidden;
  color: #c9f7dc;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-timer-mini-action button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(103, 255, 155, 0.5);
  border-radius: 10px;
  padding: 6px 11px;
  background: linear-gradient(135deg, #79ffad, #15c96a);
  box-shadow: 0 8px 18px rgba(24, 220, 118, 0.2);
  color: #04120a;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}
.cat-timer-mini-action b { color: #9be7b8; font-size: 12.5px; font-weight: 700; }
.cat-timer-dock-error { display: block; margin-top: 7px; color: #ffb2aa; font-size: 12.5px; }

@media (max-width: 760px) {
  .cat-timer-mini-alerts { max-height: 38vh; }
  .cat-timer-mini-alert-title b { font-size: 15px; }
}
