/* ============================================================
   Watchpilot · main-frame.css
   MAIN 容器 + 顶部 Tabs + Content 框架
   (原 main.css 行 585-856)
   ============================================================ */

  /* ═══════════════════════ MAIN ═══════════════════════ */
  .main {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-main);
    height: 100vh;
    position: relative;
  }
  
  .main::-webkit-scrollbar { width: 8px; }
  .main::-webkit-scrollbar-track { background: transparent; }
  .main::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
  
  /* Topbar */
  .topbar {
    height: var(--topbar-h);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 2.2vw, 32px);
    gap: clamp(12px, 1.6vw, 24px);
    background: var(--bg-main);
  }
  
  .topbar-brand-mini {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    width: 0;
    overflow: hidden;
  }
  
  .search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
  }
  .search input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 0 16px 0 42px;
    font-family: var(--font-sans);
    font-size: 13px;
    background: var(--bg-card);
    color: var(--text-1);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  }
  .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
  }
  .search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
  }
  
  .topbar-right { display: flex; align-items: center; gap: 14px; }
  
  .bell {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: border-color 0.15s, transform 0.15s;
    font-size: 14px;
  }
  .bell:hover { border-color: var(--accent); transform: translateY(-1px); }
  .bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--urgent);
    color: white;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px;
    border: 2px solid var(--bg-main);
    min-width: 18px;
    text-align: center;
    line-height: 1.1;
  }
  
  .avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    transition: border-color 0.15s;
  }
  .avatar:hover { border-color: var(--accent); }
  .avatar { font: inherit; text-align: left; }
  .avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd0c0, #b09a82);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    font-family: var(--font-sans);   /* sans 对 CJK/拉丁的字形居中更稳, 衬线 display 字会偏 */
  }
  .avatar-tier {
    font-size: 10px;
    background: var(--accent);
    color: white;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.6px;
  }
  .avatar-caret {
    color: var(--text-3);
    transition: transform 0.18s;
    margin-left: -2px;
  }
  .account-wrap.open .avatar-caret { transform: rotate(180deg); }

  /* ─── 账户下拉菜单 ─── */
  .account-wrap { position: relative; }
  .account-backdrop { display: none; }
  .account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 268px;
    background: var(--bg-card);
    border: 0.5px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 6px;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }
  .account-wrap.open .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .account-sheet-handle { display: none; }
  .account-menu:focus { outline: none; }

  .account-group { padding: 4px 0; }
  .account-divider { height: 0.5px; background: var(--border-subtle); margin: 2px 6px; }

  /* 身份区 */
  .account-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s;
  }
  .account-identity:hover { background: var(--bg-hover); }
  .account-identity-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd0c0, #b09a82);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
    font-family: var(--font-sans);
  }
  .account-identity-main { flex: 1; min-width: 0; }
  .account-identity-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
  }
  .account-identity-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-pro-badge {
    flex-shrink: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1;
    padding: 2.5px 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--accent);
  }
  .account-pro-badge.is-pro {
    color: #8a5a00;
    background: linear-gradient(135deg, #ffe08a, #f5b942);
    box-shadow: 0 1px 4px rgba(245, 185, 66, 0.4);
  }
  .account-identity-email {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--text-3);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-identity-expiry { margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--text-2); }
  .account-identity-expiry.is-pro { color: #c98a1e; }
  .account-identity-balance { margin-top: 4px; font-size: 11px; color: var(--text-2); }
  .account-identity-balance b { font-weight: 700; }
  .account-identity-arrow { color: var(--text-3); flex-shrink: 0; }

  /* 菜单项 */
  .account-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-2);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
  }
  .account-item:hover { background: var(--bg-hover); color: var(--text-1); }
  .account-item:focus-visible { outline: none; background: var(--bg-hover); color: var(--text-1); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .account-item-ico { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-3); transition: color 0.12s; }
  .account-item:hover .account-item-ico { color: var(--text-1); }
  .account-item-label { flex: 1; }
  .account-item.danger { color: #ef5350; }
  .account-item.danger .account-item-ico { color: #ef5350; }
  .account-item.danger:hover { background: rgba(239, 83, 80, 0.1); color: #ef5350; }
  .account-item.danger:focus-visible { background: rgba(239, 83, 80, 0.1); box-shadow: inset 0 0 0 1.5px #ef5350; }

  /* 移动端: 底部 sheet */
  @media (max-width: 640px) {
    .account-backdrop {
      display: block;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 70;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s, visibility 0.2s;
    }
    .account-wrap.open .account-backdrop { opacity: 1; visibility: visible; }
    .account-menu {
      position: fixed;
      top: auto;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      border-radius: 18px 18px 0 0;
      padding: 6px 10px calc(10px + env(safe-area-inset-bottom, 0px));
      transform: translateY(100%) scale(1);
      transform-origin: bottom center;
      z-index: 71;
      box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
      transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, visibility 0.2s;
    }
    .account-wrap.open .account-menu { transform: translateY(0) scale(1); }
    .account-sheet-handle {
      display: block;
      width: 36px;
      height: 4px;
      border-radius: 2px;
      background: var(--border-strong);
      margin: 6px auto 4px;
    }
    .account-item, .account-identity { padding-top: 13px; padding-bottom: 13px; }
  }

  /* ════════ 编辑资料弹窗 ════════ */
  .wp-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    animation: wpFadeIn 0.16s ease;
  }
  @keyframes wpFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .wp-profile-box {
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 0.5px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    padding: 18px 20px 16px;
    animation: wpPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes wpPopIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
  .wp-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .wp-profile-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .wp-profile-x {
    width: 28px; height: 28px;
    border: none; background: transparent;
    color: var(--text-3); font-size: 22px; line-height: 1;
    border-radius: 6px; cursor: pointer;
    transition: background 0.12s, color 0.12s;
  }
  .wp-profile-x:hover { background: var(--bg-hover); color: var(--text-1); }
  .wp-profile-section { margin-bottom: 16px; }
  .wp-profile-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
    color: var(--text-3); text-transform: uppercase; margin-bottom: 10px;
  }
  /* 头像编辑区 */
  .wp-avatar-edit { display: flex; align-items: center; gap: 14px; }
  .wp-avatar-preview {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd0c0, #b09a82);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 26px;
    line-height: 1;
    font-family: var(--font-sans);
    border: 2px solid var(--border-subtle);
  }
  .wp-avatar-actions { display: flex; flex-direction: column; gap: 6px; }
  .wp-avatar-upload-btn {
    align-self: flex-start;
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--text-1);
    border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: border-color 0.12s, background 0.12s;
  }
  .wp-avatar-upload-btn:hover { border-color: var(--accent); background: var(--bg-hover); }
  .wp-avatar-hint { font-size: 11px; color: var(--text-3); }
  .wp-avatar-presets {
    display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px;
  }
  .wp-preset-swatch {
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; position: relative;
    border: 2px solid transparent;
    transition: transform 0.12s;
  }
  .wp-preset-swatch:hover { transform: scale(1.08); }
  .wp-preset-swatch.selected { border-color: var(--text-1); }
  .wp-preset-swatch.selected::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  /* 昵称输入 */
  .wp-profile-input {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px;
    background: var(--bg-subtle, var(--bg-main));
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 14px; color: var(--text-1);
    outline: none; transition: border-color 0.12s, box-shadow 0.12s;
  }
  .wp-profile-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.06); }
  .wp-profile-counter { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 5px; font-family: var(--font-mono); }
  .wp-profile-msg { min-height: 18px; font-size: 12px; color: #ef5350; margin-bottom: 10px; }
  .wp-profile-msg.ok { color: var(--up, #26a69a); }
  .wp-profile-foot { display: flex; gap: 10px; }
  .wp-profile-cancel, .wp-profile-save {
    flex: 1; padding: 10px; border-radius: 9px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: opacity 0.12s, background 0.12s, border-color 0.12s;
  }
  .wp-profile-cancel { border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); }
  .wp-profile-cancel:hover { background: var(--bg-hover); color: var(--text-1); }
  .wp-profile-save { border: none; background: var(--accent); color: #fff; }
  .wp-profile-save:hover { opacity: 0.9; }
  .wp-profile-save:disabled { opacity: 0.5; cursor: default; }
  @media (max-width: 640px) {
    .wp-profile-overlay { align-items: flex-end; }
    .wp-profile-box { width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  }

  /* ─── 会员中心 / 我的订单 / 帮助中心 (复用 wp-profile 弹窗壳, 内容样式) ─── */
  .wp-member-box, .wp-orders-box, .wp-help-box { width: 440px; }
  .wp-member-box .wp-profile-section,
  .wp-orders-box .wp-profile-section,
  .wp-help-box .wp-profile-section { max-height: min(66vh, 560px); overflow-y: auto; margin-bottom: 0; }

  /* 会员中心 */
  .wp-mb-hero {
    border-radius: 12px; padding: 16px 16px 14px; margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(120, 113, 108, 0.10), rgba(120, 113, 108, 0.03));
    border: 1px solid var(--border-subtle);
  }
  .wp-mb-hero.is-pro {
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.16), rgba(239, 83, 80, 0.06));
    border-color: rgba(245, 185, 66, 0.45);
  }
  .wp-mb-tier { font-size: 19px; font-weight: 800; color: var(--text-1); letter-spacing: 0.3px; }
  .wp-mb-crown { color: #f5b942; font-size: 15px; }
  .wp-mb-expiry { font-size: 12px; color: var(--text-3); margin-top: 3px; }
  .wp-mb-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
  .wp-mb-stats b { color: var(--text-1); font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
  .wp-mb-table { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
  .wp-mb-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; padding: 9px 12px; font-size: 12px; border-top: 1px solid var(--border-subtle); }
  .wp-mb-row:first-child { border-top: none; }
  .wp-mb-head { background: var(--bg-hover); font-weight: 700; color: var(--text-3); font-size: 11px; letter-spacing: 0.4px; }
  .wp-mb-name { color: var(--text-2); }
  .wp-mb-free, .wp-mb-pro { text-align: center; color: var(--text-3); }
  .wp-mb-free.on, .wp-mb-pro.on { color: var(--up, #26a69a); font-weight: 700; }
  .wp-mb-pro { color: var(--text-2); }
  .wp-mb-pro.on { color: #ef5350; }

  /* 我的订单 */
  .wp-od-sum {
    display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 13px; margin-bottom: 12px;
    background: var(--bg-hover); border-radius: 10px; font-size: 12px; color: var(--text-3);
  }
  .wp-od-sum b { font-family: var(--font-mono); font-weight: 700; }
  .wp-od-list { display: flex; flex-direction: column; }
  .wp-od-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 4px; border-top: 1px solid var(--border-subtle);
  }
  .wp-od-item:first-child { border-top: none; }
  .wp-od-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
  .wp-od-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
  .wp-od-st { color: var(--up, #26a69a); }
  .wp-od-st.wp-od-pending { color: #f5b942; }
  .wp-od-st.wp-od-closed { color: var(--text-3); }
  .wp-od-amt { font-size: 15px; font-weight: 800; font-family: var(--font-mono); white-space: nowrap; }

  /* 帮助中心 */
  .wp-help-list { display: flex; flex-direction: column; gap: 8px; }
  .wp-help-item { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; background: var(--bg-subtle, var(--bg-main)); }
  .wp-help-q {
    cursor: pointer; list-style: none; padding: 11px 14px; font-size: 13px; font-weight: 600;
    color: var(--text-1); position: relative; user-select: none;
  }
  .wp-help-q::-webkit-details-marker { display: none; }
  .wp-help-q::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 17px; font-weight: 400; }
  .wp-help-item[open] .wp-help-q::after { content: '−'; }
  .wp-help-q:hover { background: var(--bg-hover); }
  .wp-help-a { padding: 0 14px 13px; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
  .wp-help-contact { margin-top: 16px; padding: 13px 14px; border-radius: 10px; background: var(--bg-hover); }
  .wp-help-contact-t { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
  .wp-help-contact-r { font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
  .wp-help-contact-r b { color: var(--text-1); font-family: var(--font-mono); }

  @media (max-width: 640px) {
    .wp-member-box, .wp-orders-box, .wp-help-box { width: 100%; }
  }

  /* ─── Tabs ─── */
  .tabs {
    height: var(--tabbar-h);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 2.2vw, 32px);
    gap: clamp(14px, 1.7vw, 26px);
    position: sticky;
    top: 0;
    z-index: 9;
    background: var(--bg-main);
    overflow-x: auto;                 /* 标签过多时可横向滚动, 不挤爆 */
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  
  .market-switch {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
  }
  
  .tab {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
    cursor: pointer;
    padding: 15px 2px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s;
    user-select: none;
  }
  .tab:hover { color: var(--text-1); }
  .tab.active {
    color: var(--text-1);
    font-weight: 700;
    border-bottom-color: var(--accent);
  }
  
  .market-mood {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-weight: 500;
  }
  .mood-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-subtle);
    color: var(--text-1);
    padding: 3px 10px;
    
    font-weight: 700;
    font-size: 11px;
  }
  .mood-indicator::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--up);
    border-radius: 50%;
  }
  
  /* ─── Content ─── */
  .content {
    /* 内边距随视口轻微流动, 小屏少占边距给内容腾地 */
    padding: clamp(20px, 2.2vw, 32px) clamp(18px, 2.2vw, 32px) 80px;
    max-width: none;
    margin-right: var(--sidebar-w);   /* 右侧空白 = 侧边栏宽度, 与左侧对称 */
  }
  /* 超宽屏: 给正文区一个温和上限并居中, 防内容被拉得过宽、字稀疏 (上限取大值, 常规屏无影响) */
  @media (min-width: 2160px) {
    .content {
      max-width: var(--content-max);
      margin-right: auto;
      margin-left: auto;
    }
  }
  /* 窄屏: 撤掉右侧"对称空白", 把整块宽度还给内容, 防多列被挤压/溢出 */
  @media (max-width: 1280px) {
    .content { margin-right: 0; }
  }

  .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    margin-top: 8px;
  }
  .section-heading-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .section-h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--text-1);
  }
  .section-sub {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    font-family: var(--font-mono);
  }
  
  .section-cta {
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.15s;
  }
  .section-cta:hover { color: var(--accent); }

  /* ════════ AI 投研悬浮球 (可拖拽; 点击进 /pro) ════════ */
  .ai-fab {
    position: fixed;
    right: 40px;
    bottom: 104px;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    border: none;
    padding: 0;
    cursor: grab;
    touch-action: none;
    z-index: 120;
    background: linear-gradient(150deg, #2A2723 0%, #1A1817 55%, #151413 100%);
    color: #F6F2E9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -10px rgba(28, 27, 24, 0.55), 0 2px 6px -3px rgba(28, 27, 24, 0.35);
    animation: aiFabBreathe 3.4s ease-in-out infinite;
    transition: transform 0.16s, box-shadow 0.16s;
  }
  @keyframes aiFabBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
  .ai-fab:hover { animation-play-state: paused; transform: scale(1.06); box-shadow: 0 14px 30px -10px rgba(28, 27, 24, 0.6); }
  .ai-fab:active { transform: scale(0.97); }
  .ai-fab.dragging { cursor: grabbing; animation: none; transition: none; }
  .ai-fab:focus-visible { outline: 2px solid #C6C1B7; outline-offset: 3px; }
  .ai-fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 17px;
    border: 1.5px solid #C6C1B7;
    animation: aiFabHalo 2.9s ease-out infinite;
    pointer-events: none;
  }
  @keyframes aiFabHalo { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.5); opacity: 0; } }
  .ai-fab-star { display: block; animation: aiFabTwinkle 3.4s ease-in-out infinite; }
  @keyframes aiFabTwinkle { 0%, 100% { opacity: 0.92; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
  @media (prefers-reduced-motion: reduce) {
    .ai-fab, .ai-fab-ring, .ai-fab-star { animation: none; }
  }

