/* 灵动岛提示（模板 1:1 迁移：E:谷歌浏览器下载地址gemini-code-1795349293519.html）
   类名统一 dyn- 前缀，避免与已上线的更新岛 .island-anchor 冲突；字号改 rem 以跟随系统字体。 */
.dyn-anchor,
.dyn-measure {
  --w-dur: 540ms;
  --h-dur: 540ms;
  --r-dur: 540ms;
  --t-dur: 460ms;
  --op-dur: 240ms;
  --op-delay: 0ms;
  --ease-morph: cubic-bezier(0.24, 1.08, 0.34, 1);
  --ease-move: cubic-bezier(0.24, 1, 0.36, 1);
  --content-in-dur: 320ms;
  --content-out-dur: 100ms;
  --bar-dur: 580ms;
}

.dyn-shell,
.dyn-shell * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.dyn-shell button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .dyn-shell,
  .dyn-shell.is-dragging {
    transition-duration: 1ms !important;
  }
  .di-spinner,
  .di-dot::after {
    animation: none !important;
  }
}

.dyn-anchor {
      position: fixed;
      top: max(12px, env(safe-area-inset-top));
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      pointer-events: none;
      z-index: 11000;
    }

    /* 能收起原生顶栏时：垫上与顶栏等高的内边距，WebView 变高也不会让页面整体上移 */
    html.skxs-topbar-bridge {
      padding-top: var(--skxs-topbar-gap, 0px);
    }

    /* 顶栏收起后上面空出一截，岛往上贴，别压住站点自己的标题栏 */
    html.skxs-topbar-bridge:not(.skxs-island-persistent) .dyn-anchor {
      top: max(4px, calc(env(safe-area-inset-top, 0px) - 22px));
    }

    /* 常驻时顶部只预留一行。iframe 的固定标题和返回键也使用同一个起点。 */
    html.skxs-island-persistent {
      --skxs-island-top: max(12px, env(safe-area-inset-top, 0px));
      --skxs-island-reserve: calc(var(--skxs-island-top) + 46px);
      padding-top: max(var(--skxs-island-reserve), var(--skxs-topbar-gap, 0px));
    }
    html.skxs-island-persistent .dyn-anchor { top: var(--skxs-island-top); }
    html.skxs-island-persistent.iframe-scroll-locked .dyn-anchor::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      height: var(--skxs-island-reserve);
      background: var(--bg-main, #f5f5f7);
    }
    html.skxs-island-persistent #ai-iframe {
      top: var(--skxs-island-reserve);
      height: calc(var(--skxs-vh, 1vh) * 100 - var(--skxs-island-reserve));
    }
    html.skxs-island-persistent :is(#ai-iframe-back-btn, #iframe-pass-leaderboard-btn) {
      margin-top: var(--skxs-island-reserve);
    }
    html.skxs-island-persistent #page-schedule .schedule-app {
      height: calc(var(--skxs-vh, 1vh) * 100 - var(--skxs-island-reserve));
    }

    .dyn-idle-button {
      position: absolute;
      inset: 0;
      width: 100%;
      border: 0;
      border-radius: inherit;
      background: transparent;
      cursor: pointer;
      touch-action: none;
    }
    .dyn-idle-button:focus-visible { outline: 2px solid #8ab9ff; outline-offset: -3px; }
    /* 真实 112×36 中央物理挖孔区，与 ios.html .truedepth-cutout 同尺寸同中轴 */
    .dyn-cutout {
      position: absolute;
      top: 0;
      left: 50%;
      width: 112px;
      height: 36px;
      transform: translate3d(-50%, 0, 0);
      z-index: 16;
      pointer-events: none;
      display: none;
    }
    .dyn-shell:has(.dyn-idle-button:not([hidden])) .dyn-cutout,
    html.skxs-island-persistent .dyn-cutout { display: block; }
    html.skxs-island-persistent .dyn-layer.is-defocusing {
      opacity: 0;
      filter: blur(14px);
      transform: translate3d(-50%, 0, 0) scale(0.94);
      transition:
        opacity 135ms cubic-bezier(0.4, 0, 1, 1),
        filter 135ms cubic-bezier(0.4, 0, 1, 1),
        transform 135ms cubic-bezier(0.4, 0, 1, 1);
    }
    .dyn-lens {
      position: absolute;
      right: 11.5px;
      top: 50%;
      transform: translateY(-50%);
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: radial-gradient(circle at 34% 34%, #375791, #111b31 32%, #070b14 56%, #020307 74%);
      box-shadow: inset 0 0 0 1px rgb(89 123 181 / 14%);
    }
    .dyn-lens::before, .dyn-lens::after {
      content: ''; position: absolute; border-radius: 50%; background: #7192cd;
    }
    .dyn-lens::before { width: 2px; height: 2px; top: 3px; left: 4px; }
    .dyn-lens::after { width: 1px; height: 1px; top: 7px; left: 7px; opacity: .55; }
    .dyn-shortcut-overlay { position: fixed; inset: 0; z-index: 10999; }
    .dyn-shortcut-overlay[hidden] { display: none; }

    /* ===== 常驻岛展开结构：逐条对照 ios.html（分翼眉栏 / 挖孔死区 / 主体区） ===== */
    .di-split-pill,
    .di-exp-header {
      height: 36px;
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 112px 1fr;
      align-items: center;
      padding: 0 18px;
      box-sizing: border-box;
    }
    .di-split-pill { padding: 0 13px; }
    .di-wing-left {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      min-width: 0;
    }
    /* 物理硬件不可显示区：严禁渲染任何元素 */
    .di-wing-deadzone { width: 112px; height: 36px; }
    .di-wing-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      min-width: 0;
    }
    .di-compact-label {
      font-size: .71875rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1;
    }
    .di-compact-label.blue { color: #7dd3fc; }
    .di-compact-label.green { color: #6ee7b7; }
    .di-compact-label.indigo { color: #c7d2fe; }
    .di-compact-label.amber { color: #fde68a; }
    .di-compact-label.rose { color: #fda4af; }
    .di-compact-label.white { color: #f5f5f7; }
    .di-exp-cat {
      font-size: .71875rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: rgb(255 255 255 / 72%);
      white-space: nowrap;
      line-height: 1;
    }
    .di-exp-tag {
      font-size: .65625rem;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 999px;
      letter-spacing: 0.01em;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      line-height: 1.1;
    }
    .di-exp-tag.blue { background: rgb(56 189 248 / 16%); color: #7dd3fc; }
    .di-exp-tag.green { background: rgb(52 211 153 / 16%); color: #6ee7b7; }
    .di-exp-tag.indigo { background: rgb(129 140 248 / 20%); color: #c7d2fe; }
    .di-exp-tag.amber { background: rgb(251 191 36 / 18%); color: #fcd34d; }
    .di-exp-tag.rose { background: rgb(251 113 133 / 18%); color: #fda4af; }
    /* 展开态主体内容区：严格排在 36px 挖孔带下方，14px 边距对齐同心圆角 */
    .di-exp-body { padding: 8px 14px 14px; }
    .di-stack { display: flex; flex-direction: column; gap: 10px; }
    .di-foot-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 0 2px;
    }
    .di-foot-hint {
      font-size: .71875rem;
      color: rgb(255 255 255 / 50%);
      padding-left: 4px;
    }

    /* 快捷操作：模板 22px 同心圆角暗玻璃选项条，逐行排列 */
    .di-shortcut-list { display: flex; flex-direction: column; gap: 7px; }
    .di-shortcut-row {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid rgb(255 255 255 / 10%);
      background: rgb(255 255 255 / 6.8%);
      color: rgb(255 255 255 / 90%);
      border-radius: 22px;
      padding: 9.5px 14px;
      font-family: inherit;
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      text-align: left;
      transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
    }
    .di-shortcut-row svg { flex-shrink: 0; }
    .di-shortcut-row:active { transform: scale(0.985); }
    .di-shortcut-row:focus-visible { outline: 2px solid #8ab9ff; outline-offset: -3px; }
    .di-shortcut-label {
      flex: 1;
      min-width: 0;
      font-size: .78125rem;
      font-weight: 500;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .di-chevron { color: rgb(255 255 255 / 35%); flex-shrink: 0; }

    /* 两翼从中央挖孔两侧推开 / 收起时收回挖孔 */
    .dyn-layer .di-wing-left { transform: translate3d(10px, 0, 0); will-change: transform;
      transition: transform 390ms cubic-bezier(0.18, 1, 0.3, 1); }
    .dyn-layer .di-wing-right { transform: translate3d(-10px, 0, 0); will-change: transform;
      transition: transform 390ms cubic-bezier(0.18, 1, 0.3, 1); }
    .dyn-layer.is-active .di-wing-left,
    .dyn-layer.is-active .di-wing-right { transform: translate3d(0, 0, 0); }
    .dyn-layer.is-leaving .di-wing-left { transform: translate3d(10px, 0, 0);
      transition: transform 180ms cubic-bezier(0.4, 0, 0.9, 1); }
    .dyn-layer.is-leaving .di-wing-right { transform: translate3d(-10px, 0, 0);
      transition: transform 180ms cubic-bezier(0.4, 0, 0.9, 1); }
    /* 展开主体：从挖孔下沿 (-14px, scale .95) 舒展浮现，收起时被吸回挖孔 */
    .dyn-layer .di-exp-body {
      transform: translate3d(0, -14px, 0) scale(0.95);
      transform-origin: center top;
      will-change: transform;
      transition: transform 410ms cubic-bezier(0.18, 1, 0.3, 1) 45ms;
    }
    .dyn-layer.is-active .di-exp-body { transform: translate3d(0, 0, 0) scale(1); }
    .dyn-layer.is-leaving .di-exp-body {
      transform: translate3d(0, -14px, 0) scale(0.92);
      transition: transform 200ms cubic-bezier(0.45, 0, 0.9, 1) 0ms;
    }
    .dyn-shell:has(.di-shortcut-list) { touch-action: none; }

    /* 安卓 App 的 WebView 顶部叠着一层原生浮层按钮（刷新/设置/下载），岛要往下让开 */
    html.is-skxs-webview:not(.skxs-topbar-bridge):not(.skxs-island-persistent) .dyn-anchor {
      top: max(64px, calc(env(safe-area-inset-top, 0px) + 26px));
    }

    .dyn-shell {
      position: relative;
      width: 64px;
      height: 22px;
      border-radius: 11px;
      background: #0a0a0c;
      color: #f9fafb;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translate3d(0, -28px, 0) scale(0.86);
      transform-origin: center top;
      box-shadow:
        0 16px 36px -10px rgba(0, 0, 0, 0.38),
        0 4px 12px -2px rgba(0, 0, 0, 0.22),
        0 0 0 0.75px rgba(255, 255, 255, 0.14) inset;
      will-change: width, height, border-radius, transform, opacity;
      transition:
        width var(--w-dur) var(--ease-morph),
        height var(--h-dur) var(--ease-morph),
        border-radius var(--r-dur) var(--ease-morph),
        transform var(--t-dur) var(--ease-move),
        opacity var(--op-dur) ease-out var(--op-delay);
      touch-action: none;
      user-select: none;
    }

    .dyn-shell.is-dragging {
      transition:
        width var(--w-dur) var(--ease-morph),
        height var(--h-dur) var(--ease-morph),
        border-radius var(--r-dur) var(--ease-morph),
        opacity var(--op-dur) ease-out var(--op-delay);
    }

    .dyn-shell::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 36%);
      pointer-events: none;
      z-index: 5;
    }

    /* 顶部锚定双缓冲内容层 */
    .dyn-layer {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate3d(-50%, 0, 0) scale(0.94);
      transform-origin: center top;
      opacity: 0;
      filter: blur(7px);
      pointer-events: none;
      will-change: opacity, filter, transform;
      transition:
        opacity var(--content-in-dur) cubic-bezier(0.22, 1, 0.36, 1),
        filter var(--content-in-dur) cubic-bezier(0.22, 1, 0.36, 1),
        transform var(--content-in-dur) cubic-bezier(0.22, 1, 0.36, 1);
    }

    .dyn-layer.is-active {
      opacity: 1;
      filter: blur(0px);
      transform: translate3d(-50%, 0, 0) scale(1);
      pointer-events: auto;
      z-index: 2;
    }

    .dyn-layer.is-leaving {
      opacity: 0;
      filter: blur(6px);
      transform: translate3d(-50%, 0, 0) scale(0.92);
      pointer-events: none;
      z-index: 1;
      transition:
        opacity var(--content-out-dur) ease-out,
        filter var(--content-out-dur) ease-out,
        transform var(--content-out-dur) ease-out;
    }

    /* 离线高度测量舞台 */
    .dyn-measure {
      position: fixed;
      top: -9999px;
      left: -9999px;
      visibility: hidden;
      pointer-events: none;
      z-index: -1;
    }

    /* ================= 灵动岛内部组件样式 ================= */
    .di-pill {
      height: 34px;
      padding: 0 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      font-size: .78125rem;
      font-weight: 500;
      letter-spacing: -0.01em;
      color: #f3f4f6;
      white-space: nowrap;
    }

    .di-status {
      height: 40px;
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: .8125rem;
      font-weight: 500;
      color: #f9fafb;
      white-space: nowrap;
    }

    .di-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
      position: relative;
    }

    .di-dot.blue { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
    .di-dot.green { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
    .di-dot.indigo { background: #818cf8; box-shadow: 0 0 8px rgba(129, 140, 248, 0.7); }
    .di-dot.amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
    .di-dot.rose { background: #fb7185; box-shadow: 0 0 8px rgba(251, 113, 133, 0.7); }

    .di-dot::after {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid currentColor;
      opacity: 0.45;
      animation: pulseRing 1.4s ease-out infinite;
    }

    .di-dot.blue::after { color: #38bdf8; }
    .di-dot.green::after { color: #34d399; }
    .di-dot.indigo::after { color: #818cf8; }
    .di-dot.amber::after { color: #fbbf24; }
    .di-dot.rose::after { color: #fb7185; }

    @keyframes pulseRing {
      0% { transform: scale(0.7); opacity: 0.7; }
      100% { transform: scale(1.7); opacity: 0; }
    }

    /* 单行通知 */
    .di-row {
      padding: 10px 11px 10px 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 56px;
    }

    .di-icon-box {
      width: 34px;
      height: 34px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      position: relative;
    }

    .di-icon-box.blue { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }
    .di-icon-box.green { background: rgba(52, 211, 153, 0.16); color: #34d399; }
    .di-icon-box.indigo { background: rgba(129, 140, 248, 0.18); color: #a5b4fc; }
    .di-icon-box.amber { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
    .di-icon-box.rose { background: rgba(251, 113, 133, 0.16); color: #fb7185; }

    /* 真实头像（通知带 actor_avatar 时替换模板的人物图标） */
    .di-icon-box img {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      object-fit: cover;
      display: block;
    }

    .di-online-dot {
      position: absolute;
      right: -1px;
      bottom: -1px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #22c55e;
      border: 2px solid #0a0a0c;
    }

    .di-meta {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .di-title {
      font-size: .8125rem;
      font-weight: 600;
      color: #f9fafb;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .di-sub {
      font-size: .71875rem;
      color: rgba(255, 255, 255, 0.58);
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .di-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .di-btn {
      border: none;
      outline: none;
      cursor: pointer;
      height: 30px;
      padding: 0 11px;
      border-radius: 999px;
      font-size: .75rem;
      font-weight: 600;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
    }

    .di-btn:active {
      transform: scale(0.93);
    }

    .di-btn-ghost {
      background: rgba(255, 255, 255, 0.11);
      color: rgba(255, 255, 255, 0.78);
    }

    .di-btn-ghost:hover {
      background: rgba(255, 255, 255, 0.17);
      color: #ffffff;
    }

    .di-btn-primary {
      background: #0a84ff;
      color: #ffffff;
    }

    .di-btn-primary:hover {
      background: #1f8fff;
    }

    .di-btn-green {
      background: #22c55e;
      color: #052e16;
    }

    .di-btn-indigo {
      background: #6366f1;
      color: #ffffff;
    }

    .di-btn-amber {
      background: #f59e0b;
      color: #1c1917;
    }

    /* 双层反馈回复卡片 */
    .di-card {
      padding: 13px 14px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .di-card-head {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .di-badge {
      font-size: .65625rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(251, 191, 36, 0.16);
      color: #fcd34d;
      letter-spacing: 0.02em;
      flex-shrink: 0;
    }

    .di-reply-box {
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 8px 10px;
      font-size: .75rem;
      color: rgba(255, 255, 255, 0.84);
      line-height: 1.42;
    }

    .di-card-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .di-foot-hint {
      font-size: .6875rem;
      color: rgba(255, 255, 255, 0.45);
    }

    /* 岛内快速投票 */
    .di-poll {
      padding: 14px 14px 13px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .di-poll-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .di-poll-title-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .di-poll-tag {
      font-size: .65625rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(251, 113, 133, 0.18);
      color: #fda4af;
      flex-shrink: 0;
    }

    .di-poll-options {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .di-poll-opt {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.06);
      color: rgba(255, 255, 255, 0.88);
      border-radius: 12px;
      padding: 8px 11px;
      font-size: .78125rem;
      font-weight: 500;
      font-family: inherit;
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      text-align: left;
      transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
    }

    .di-poll-opt:hover {
      background: rgba(255, 255, 255, 0.11);
    }

    .di-poll-opt:active {
      transform: scale(0.985);
    }

    .di-poll-opt.is-selected {
      background: rgba(10, 132, 255, 0.22);
      border-color: rgba(56, 189, 248, 0.6);
      color: #ffffff;
    }

    .di-radio {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: border-color 150ms ease, background 150ms ease;
    }

    .di-poll-opt.is-selected .di-radio {
      border-color: #38bdf8;
      background: #0a84ff;
    }

    .di-radio-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #ffffff;
      transform: scale(0);
      transition: transform 160ms cubic-bezier(0.22, 1.3, 0.36, 1);
    }

    .di-poll-opt.is-selected .di-radio-dot {
      transform: scale(1);
    }

    /* 投票结果条 */
    .di-res-item {
      position: relative;
      overflow: hidden;
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 7px 11px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: .75rem;
      color: rgba(255, 255, 255, 0.86);
    }

    .di-res-item.is-picked {
      border-color: rgba(56, 189, 248, 0.45);
      color: #ffffff;
    }

    .di-res-bar {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      background: rgba(255, 255, 255, 0.1);
      transition: width var(--bar-dur) cubic-bezier(0.22, 1, 0.36, 1);
      pointer-events: none;
    }

    .di-res-item.is-picked .di-res-bar {
      background: rgba(10, 132, 255, 0.32);
    }

    .di-res-label,
    .di-res-pct {
      position: relative;
      z-index: 1;
    }

    .di-res-pct {
      font-variant-numeric: tabular-nums;
      font-weight: 600;
      font-size: .71875rem;
      color: rgba(255, 255, 255, 0.72);
    }

    .di-res-item.is-picked .di-res-pct {
      color: #7dd3fc;
    }

    /* 未选抖动提示 */
    @keyframes gentleShake {
      0%, 100% { transform: translateX(0); }
      20% { transform: translateX(-5px); }
      45% { transform: translateX(5px); }
      70% { transform: translateX(-3px); }
      88% { transform: translateX(2px); }
    }

    .di-shaking {
      animation: gentleShake 340ms ease;
    }

    /* 加载旋转与对勾绘制 */
    .di-spinner {
      width: 15px;
      height: 15px;
      animation: spin 0.85s linear infinite;
      flex-shrink: 0;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .di-check-path {
      stroke-dasharray: 24;
      stroke-dashoffset: 24;
      animation: drawCheck 360ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
    }

    @keyframes drawCheck {
      to { stroke-dashoffset: 0; }
    }

    /* ===== 常驻态场景组件：尺寸与色值逐条对齐 ios.html 第 415-693 行 =====
       只作用于 <html class="skxs-island-persistent"> 下的岛，非常驻模式保持原样。 */
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-body-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-icon-box {
      width: 40px;
      height: 40px;
      border-radius: 18px;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-online-dot {
      right: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border: 2px solid #000000;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-meta { gap: 2px; }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-title {
      font-size: .84375rem;
      color: #ffffff;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-sub {
      font-size: .71875rem;
      color: rgb(255 255 255 / 60%);
      line-height: 1.32;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn {
      height: 32px;
      padding: 0 13px;
      font-size: .75rem;
      white-space: nowrap;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn-ghost {
      background: rgb(255 255 255 / 12%);
      color: rgb(255 255 255 / 86%);
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn-green {
      background: #30d158;
      color: #04250f;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn-indigo {
      background: #6366f1;
      color: #ffffff;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn-amber {
      background: #ff9f0a;
      color: #1c1303;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-btn-rose {
      background: #ff375f;
      color: #ffffff;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-reply-box {
      background: rgb(255 255 255 / 8%);
      border: 1px solid rgb(255 255 255 / 9%);
      border-radius: 24px;
      padding: 11px 14px;
      font-size: .78125rem;
      color: rgb(255 255 255 / 90%);
      line-height: 1.48;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-foot-hint {
      font-size: .71875rem;
      color: rgb(255 255 255 / 50%);
      padding-left: 4px;
      transition: color 180ms ease;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-poll-q {
      font-size: .84375rem;
      font-weight: 600;
      color: #ffffff;
      line-height: 1.32;
      padding: 0 4px;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-poll-options { gap: 7px; }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-poll-opt {
      border-radius: 22px;
      padding: 9.5px 14px;
      font-size: .78125rem;
      color: rgb(255 255 255 / 90%);
      background: rgb(255 255 255 / 6.8%);
      border-color: rgb(255 255 255 / 10%);
      gap: 10px;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-poll-opt.is-selected {
      background: rgb(251 113 133 / 22%);
      border-color: rgb(251 113 133 / 62%);
      color: #ffffff;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-radio {
      width: 16px;
      height: 16px;
      border-color: rgb(255 255 255 / 38%);
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-poll-opt.is-selected .di-radio {
      border-color: #fda4af;
      background: #ff375f;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-radio-dot {
      width: 5.5px;
      height: 5.5px;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-item {
      border-radius: 22px;
      padding: 9px 14px;
      font-size: .78125rem;
      background: rgb(255 255 255 / 6.8%);
      border-color: rgb(255 255 255 / 8.5%);
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-item.is-picked {
      border-color: rgb(251 113 133 / 50%);
      color: #ffffff;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-bar {
      border-radius: inherit;
      background: rgb(255 255 255 / 11%);
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-item.is-picked .di-res-bar {
      background: linear-gradient(90deg, rgb(255 55 95 / 42%), rgb(251 113 133 / 24%));
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-pct {
      font-size: .75rem;
      color: rgb(255 255 255 / 72%);
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-res-item.is-picked .di-res-pct { color: #fda4af; }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-pulse-icon {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-pulse-icon::after {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1.5px solid #34d399;
      opacity: 0;
      animation: iconPulse 1.55s ease-out infinite;
    }
    @keyframes iconPulse {
      0% { transform: scale(0.72); opacity: 0.72; }
      100% { transform: scale(1.48); opacity: 0; }
    }
    html.skxs-island-persistent :is(.dyn-shell, .dyn-measure) .di-spinner {
      width: 16px;
      height: 16px;
    }
