
    /* ========================================================
       配色与基础规范 (纯色无渐变，极简耐看的 PS 插件深色调)
       ======================================================== */
    :root {
      --bg-panel: #202124;          /* 面板底色 */
      --bg-popover: #292a2e;        /* 用户菜单浮层纯色背景 */
      --bg-input: #17181a;          /* 输入框/下拉框纯深色背景 */
      --bg-card: #25272c;           /* 图片缩略图卡片底色 */
      --bg-tab-container: #2b2d31;  /* 顶部 Tab 槽底纯色 */
      --bg-tab-active: #3c3e44;     /* Tab 激活纯色 */
      --bg-btn-tool: #2b2d32;       /* 选框工具按钮背景 */
      --bg-btn-tool-hover: #35383e; 
      --bg-btn-tool-active: #1e3a5f;
      --bg-hover-item: #33353c;     /* 悬停底色 */
      
      --border-subtle: #33353b;     /* 分割线/边框纯色 */
      --border-light: #3f424a;      /* 浮层分割线 */
      --border-focus: #3b82f6;      /* 聚焦高亮纯蓝 */
      
      --text-white: #ffffff;        /* 纯白标题文字 */
      --text-body: #d1d5db;         /* 正文普通浅色 */
      --text-desc: #8e95a2;         /* 说明文本灰色 */
      --text-sub: #9ca3af;          /* 辅助中灰 */
      --text-muted: #6b7280;        /* 快捷键灰色 */
      
      --blue-primary: #3b82f6;      /* 主按钮纯科技蓝 (无渐变) */
      --blue-hover: #2563eb;        /* 主按钮 hover 纯色 */
      --blue-active: #1d4ed8;       /* 主按钮 active 纯色 */
      
      --orange-badge: #d97706;      /* 左下角 XX 徽章纯橙色 (无渐变) */
      --orange-hover: #b45309;
      --gold-avatar: #b48c56;       /* 用户弹窗金色头像底色 */
      
      --bg-dark: #202124;
      --bg-hover: #33353c;
      --color-blue: #3b82f6;
      --color-blue-hover: #2563eb;
      
      --radius-sm: 4px;
      --radius-md: 6px;
      --radius-pill: 9999px;
      --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-font-smoothing: antialiased;
      user-select: none;
    }

    html, body {
      width: 100%;
      height: 100%;
      background-color: var(--bg-panel);
      font-family: var(--font-stack);
      color: var(--text-body);
      overflow: hidden;
    }

    /* ========================================================
       Photoshop 插件主容器: class="sketch-panel"
       ======================================================== */
    .sketch-panel {
      width: 100%;
      height: 100%;
      max-width: 400px;
      margin: 0 auto;
      background-color: var(--bg-panel);
      display: flex;
      flex-direction: column;
      padding: 16px 16px 16px 16px;
      position: relative;
    }

    /* 滚动内容区域 */
    .panel-scroll-content {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .panel-scroll-content::-webkit-scrollbar {
      width: 5px;
    }
    .panel-scroll-content::-webkit-scrollbar-thumb {
      background-color: #383a40;
      border-radius: 3px;
    }
    .panel-scroll-content::-webkit-scrollbar-thumb:hover {
      background-color: #484b52;
    }

    /* --------------------------------------------------------
       顶部药丸导航 (改字专用 / 文字生图 / 图片生图)
       -------------------------------------------------------- */
    .nav-tabs {
      background-color: var(--bg-tab-container);
      border-radius: var(--radius-pill);
      padding: 3px;
      display: flex;
      border: 1px solid var(--border-subtle);
      margin-bottom: 18px;
      flex-shrink: 0;
    }

    .tab-item {
      flex: 1;
      border: none;
      background: transparent;
      color: var(--text-sub);
      font-size: 13px;
      font-weight: 500;
      padding: 7px 4px;
      border-radius: var(--radius-pill);
      cursor: pointer;
      text-align: center;
      transition: background-color 0.15s ease, color 0.15s ease;
      white-space: nowrap;
    }

    .tab-item:hover {
      color: var(--text-white);
    }

    .tab-item.active {
      background-color: var(--bg-tab-active);
      color: var(--text-white);
      font-weight: 600;
    }

    /* 导航内容视图切换 (Tab Views) */
    .tab-content-panel {
      display: none;
      flex-direction: column;
      flex: 1;
    }

    .tab-content-panel.active {
      display: flex;
    }

    /* --------------------------------------------------------
       步骤区块结构通用样式
       -------------------------------------------------------- */
    .step-block {
      display: flex;
      flex-direction: column;
      margin-bottom: 16px;
    }

    .step-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .step-title {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-white);
      letter-spacing: -0.1px;
    }

    /* 快捷操作/默认复位标签按钮 */
    .btn-action-tag {
      font-size: 11.5px;
      padding: 2px 8px;
      background-color: var(--bg-btn-tool);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-desc);
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .btn-action-tag:hover {
      color: var(--text-white);
      border-color: #4b4e57;
    }

    /* 矩形选框工具按钮 */
    .btn-tool {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background-color: var(--bg-btn-tool);
      border: 1px solid var(--border-subtle);
      color: #e5e7eb;
      padding: 5px 10px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .btn-tool:hover {
      background-color: var(--bg-btn-tool-hover);
      border-color: #4b4e57;
      color: var(--text-white);
    }

    .btn-tool.active {
      background-color: var(--bg-btn-tool-active);
      border-color: var(--border-focus);
      color: #93c5fd;
    }

    .step-desc {
      font-size: 12px;
      line-height: 1.6;
      color: var(--text-desc);
    }

    /* 输入框容器 */
    .textarea-container {
      position: relative;
    }

    .text-input-field {
      width: 100%;
      min-height: 100px;
      background-color: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 10px 12px;
      color: var(--text-white);
      font-family: inherit;
      font-size: 13.5px;
      line-height: 1.5;
      resize: vertical;
      outline: none;
      user-select: text;
      transition: border-color 0.15s ease;
    }

    .text-input-field:hover {
      border-color: #454852;
    }

    .text-input-field:focus {
      border-color: var(--border-focus);
    }

    /* 下拉选择框 */
    .select-container {
      position: relative;
      display: flex;
      align-items: center;
    }

    .select-field {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      background-color: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 10px 36px 10px 12px;
      color: var(--text-white);
      font-size: 13.5px;
      font-weight: 500;
      outline: none;
      cursor: pointer;
      transition: border-color 0.15s ease;
    }

    .select-field:hover {
      border-color: #454852;
    }

    .select-field:focus {
      border-color: var(--border-focus);
    }

    /* 下拉箭头 (标准盒模型定位，无 transform) */
    .select-arrow {
      position: absolute;
      right: 12px;
      top: 0;
      bottom: 0;
      margin-top: auto;
      margin-bottom: auto;
      height: 16px;
      pointer-events: none;
      color: var(--text-sub);
      display: flex;
      align-items: center;
    }

    /* 画面比例单选胶囊按钮组 */
    .ratio-group {
      display: flex;
      gap: 6px;
    }

    .ratio-btn {
      flex: 1;
      padding: 7px 2px;
      background-color: var(--bg-input);
      border: 1px solid var(--border-subtle);
      color: var(--text-sub);
      font-size: 12px;
      font-weight: 500;
      border-radius: var(--radius-sm);
      cursor: pointer;
      text-align: center;
      transition: all 0.15s ease;
      white-space: nowrap;
    }

    .ratio-btn:hover {
      color: var(--text-white);
      border-color: #454852;
    }

    .ratio-btn.active {
      background-color: #2b3b55;
      border-color: var(--border-focus);
      color: #93c5fd;
      font-weight: 600;
    }

    /* ========================================================
       图片生图专区：添加选中的图片、图1、图2 缩略图卡片
       ======================================================== */
    .img-actions-toolbar {
      display: flex;
      gap: 10px;
      margin-bottom: 12px;
    }

    .btn-action-tool {
      flex: 1;
      padding: 9px 12px;
      background-color: var(--bg-btn-tool);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      color: var(--text-white);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
    }

    .btn-action-tool:hover {
      background-color: #383a42;
      border-color: #4b4e57;
    }

    /* 主操作高亮：添加选中的图片 */
    .btn-action-tool.highlight-btn {
      background-color: #1e3a5f;
      border-color: #2563eb;
      color: #93c5fd;
      font-weight: 600;
    }
    .btn-action-tool.highlight-btn:hover {
      background-color: #244976;
      border-color: #3b82f6;
      color: #ffffff;
    }

    /* 图片缩略图卡片网格 (图1、图2...) */
    .images-preview-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 14px;
    }

    .image-card-box {
      background-color: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      position: relative;
    }

    .card-top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .card-badge {
      font-size: 11px;
      padding: 2px 7px;
      border-radius: 3px;
      font-weight: 600;
      background-color: #32353d;
      color: #e2e8f0;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .btn-card-del {
      border: none;
      background: transparent;
      color: #94a3b8;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      padding: 0 4px;
    }
    .btn-card-del:hover {
      color: #ef4444;
    }

    .thumb-holder {
      width: 100%;
      height: 74px;
      background-color: #16171a;
      border-radius: var(--radius-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.04);
      color: #64748b;
      font-size: 11px;
      position: relative;
      overflow: hidden;
    }

    .thumb-holder img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .card-footer-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
      color: var(--text-desc);
    }

    .btn-card-replace {
      border: none;
      background: transparent;
      color: #60a5fa;
      cursor: pointer;
      font-size: 11px;
      padding: 0;
    }
    .btn-card-replace:hover {
      text-decoration: underline;
    }

    /* 快捷提示词词条 */
    .prompt-helper-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .prompt-chip {
      font-size: 11px;
      padding: 3px 8px;
      background-color: var(--bg-input);
      border: 1px solid var(--border-subtle);
      color: var(--text-sub);
      border-radius: 3px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .prompt-chip:hover {
      background-color: #2e3037;
      color: var(--text-white);
      border-color: #4b4e57;
    }

    /* --------------------------------------------------------
       主操作按钮
       -------------------------------------------------------- */
    .submit-container {
      margin-top: 6px;
      margin-bottom: auto; /* 将底部 XX 徽章自然推到底部 */
    }

    .btn-submit {
      width: 100%;
      padding: 12px 16px;
      border: none;
      border-radius: var(--radius-md);
      background-color: var(--blue-primary);
      color: var(--text-white);
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.2px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background-color 0.15s ease;
    }

    .btn-submit:hover {
      background-color: var(--blue-hover);
    }

    .btn-submit:active {
      background-color: var(--blue-active);
    }

    /* --------------------------------------------------------
       底部栏与用户入口按钮 (<footer class="panel-footer">)
       -------------------------------------------------------- */
    .panel-footer {
      padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      flex-shrink: 0;
      margin-top: 6px;
    }

    /* 高颜值微卡片式用户入口按钮 */
    .user-entry-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background-color: #26282e;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-pill);
      padding: 3px 9px 3px 3px;
      cursor: pointer;
      transition: background-color 0.15s ease, border-color 0.15s ease;
    }

    .user-entry-btn:hover {
      background-color: #2f323a;
      border-color: #4b4e57;
    }

    /* 底栏按钮内的金色 YC 头像 (和弹窗保持一致效果) */
    .user-entry-btn .user-avatar-gold {
      width: 26px;
      height: 26px;
      font-size: 11.5px;
    }

    .user-name-text {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-white);
      line-height: 1;
    }

    .user-dropdown-arrow {
      color: var(--text-muted);
      display: flex;
      align-items: center;
    }

    /* 底部软件官方网址 */
    .footer-site-link {
      font-size: 11.5px;
      color: var(--text-desc);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 6px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: color 0.15s ease, background-color 0.15s ease;
    }

    .footer-site-link:hover {
      color: #93c5fd;
      background-color: rgba(255, 255, 255, 0.04);
    }

    .footer-site-link svg {
      color: var(--text-muted);
    }

    .footer-site-link:hover svg {
      color: #93c5fd;
    }

    /* --------------------------------------------------------
       参考图一设计的用户资料与会员额度弹窗
       -------------------------------------------------------- */
    .user-popover-menu {
      position: absolute;
      bottom: 54px;
      left: 0;
      width: 250px;
      background-color: var(--bg-popover);
      border: 1px solid var(--border-light);
      border-radius: 8px;
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
      display: none;
      flex-direction: column;
      z-index: 200;
      overflow: hidden;
    }

    .user-popover-menu.open {
      display: flex;
    }

    /* 顶部用户信息 (参考图一) */
    .popover-header {
      padding: 14px 14px 12px 14px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .user-avatar-gold {
      width: 38px;
      height: 38px;
      background-color: var(--gold-avatar);
      color: #ffffff;
      font-size: 13px;
      font-weight: 700;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .user-info-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .user-display-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-white);
      line-height: 1.2;
    }

    .user-badge-pro {
      font-size: 12px;
      color: var(--text-desc);
    }

    .popover-divider {
      height: 1px;
      background-color: var(--border-light);
      margin: 0;
    }

    /* 菜单项列表 (参考图一五个条目) */
    .popover-body {
      padding: 6px 0;
      display: flex;
      flex-direction: column;
    }

    .menu-item-row {
      padding: 9px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: var(--text-body);
      font-size: 13px;
      cursor: pointer;
      transition: background-color 0.12s ease, color 0.12s ease;
    }

    .menu-item-row:hover {
      background-color: var(--bg-hover-item);
      color: var(--text-white);
    }

    .menu-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .menu-icon {
      width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-desc);
    }

    .menu-item-row:hover .menu-icon {
      color: var(--text-white);
    }

    .menu-right-meta {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* --------------------------------------------------------
       中下部轻量提示条 (不在顶部，完全无 transform)
       -------------------------------------------------------- */
    .msg-toast {
      position: absolute;
      bottom: 74px;
      left: 20px;
      right: 20px;
      background-color: #16171a;
      border: 1px solid var(--border-subtle);
      color: var(--text-white);
      font-size: 12px;
      padding: 9px 14px;
      border-radius: var(--radius-sm);
      display: none;
      text-align: center;
      z-index: 999; /* 提示条保持最高层级 */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .msg-toast.show {
      display: block;
    }

    /* ========================================================
       全屏使用情况与充值视图 (独立整屏覆盖、极简纯色、零渐变、零 transform)
       ======================================================== */
    .sketch-panel.view-mode-fullscreen {
      padding: 0 !important;
    }

    .sketch-panel.view-mode-fullscreen .nav-tabs,
    .sketch-panel.view-mode-fullscreen .panel-scroll-content,
    .sketch-panel.view-mode-fullscreen .panel-footer {
      display: none !important;
    }

    .fullscreen-view {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      background-color: #202124; /* 纯实色面板底色，严禁透明，彻底覆盖主界面 */
      z-index: 500;              /* 高于底栏浮层菜单 (z-index: 200) */
      display: none;
      flex-direction: column;
      box-sizing: border-box;
      overflow: hidden;
    }

    .fullscreen-view.open {
      display: flex;
    }

    /* 顶部极简导航栏 (固定高度，纯色底) */
    .view-top-bar {
      height: 46px;
      min-height: 46px;
      display: flex;
      align-items: center;
      position: relative;
      padding: 0 12px;
      border-bottom: 1px solid var(--border-subtle);
      background-color: #1a1b1f;
      flex-shrink: 0;
    }

    .btn-view-back {
      border: none;
      background: transparent;
      color: var(--text-desc);
      font-size: 13px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 8px;
      border-radius: var(--radius-sm);
      transition: color 0.15s ease, background-color 0.15s ease;
      line-height: 1;
      position: relative;
      z-index: 2;
    }

    .btn-view-back:hover {
      color: var(--text-white);
      background-color: var(--bg-hover-item);
    }

    .view-bar-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-white);
      position: absolute;
      left: 0;
      right: 0;
      text-align: center;
      pointer-events: none;
    }

    /* 全屏可滚动内容区 */
    .view-scroll-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .view-scroll-body::-webkit-scrollbar {
      width: 5px;
    }
    .view-scroll-body::-webkit-scrollbar-thumb {
      background-color: #383a40;
      border-radius: 3px;
    }

    .clean-block {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .clean-block-title {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-white);
      letter-spacing: -0.1px;
    }

    /* 1. 积分总览卡片 (极简纯色) */
    .clean-hero-card {
      background-color: #17181b;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .hero-card-label {
      font-size: 11.5px;
      color: var(--text-desc);
    }

    .hero-card-num-row {
      display: flex;
      align-items: baseline;
      gap: 6px;
    }

    .hero-card-num {
      font-size: 32px;
      font-weight: 700;
      color: var(--text-white);
      letter-spacing: -0.5px;
      line-height: 1.1;
    }

    .hero-card-unit {
      font-size: 13px;
      color: var(--text-desc);
      font-weight: 500;
    }

    .hero-card-desc {
      font-size: 12px;
      color: var(--text-sub);
      margin-top: 4px;
      line-height: 1.4;
    }

    /* 2. 充值档位 (极简 2x2 网格) */
    .clean-tier-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .clean-tier-btn {
      background-color: #17181b;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 12px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 3px;
      transition: background-color 0.15s ease, border-color 0.15s ease;
      text-align: left;
    }

    .clean-tier-btn:hover {
      border-color: #4b4e57;
    }

    .clean-tier-btn.selected {
      background-color: #1e3a5f;
      border-color: var(--border-focus);
    }

    .tier-main-price {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-white);
    }

    .tier-sub-score {
      font-size: 12px;
      color: #93c5fd;
    }

    /* 自定义金额输入行 */
    .clean-input-row {
      display: flex;
      align-items: center;
      background-color: #17181b;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 8px 12px;
      gap: 8px;
    }

    .clean-input-row:focus-within {
      border-color: var(--border-focus);
    }

    .clean-input-prefix {
      font-size: 12.5px;
      color: var(--text-sub);
      white-space: nowrap;
    }

    .clean-amount-field {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-white);
      font-size: 13.5px;
      font-weight: 600;
      outline: none;
      width: 60px;
    }

    .clean-calc-tip {
      font-size: 11.5px;
      color: #94a3b8;
      white-space: nowrap;
    }

    /* 支付方式 (微信 / 支付宝) */
    .clean-pay-methods {
      display: flex;
      gap: 8px;
    }

    .clean-method-item {
      flex: 1;
      padding: 9px 12px;
      background-color: #17181b;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      font-size: 12.5px;
      color: var(--text-sub);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
    }

    .clean-method-item.active {
      border-color: var(--border-focus);
      background-color: #2b3b55;
      color: var(--text-white);
      font-weight: 600;
    }

    /* 立即充值按钮 */
    .clean-submit-action {
      width: 100%;
      height: 40px;
      background-color: var(--blue-primary);
      border: none;
      border-radius: var(--radius-md);
      color: #ffffff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background-color 0.15s ease;
      margin-top: 2px;
    }

    .clean-submit-action:hover {
      background-color: var(--blue-hover);
    }

    .clean-submit-action:active {
      background-color: var(--blue-active);
    }

    /* 3. 使用明细列表 (纯净灰白，杜绝花里胡哨) */
    .clean-records-group {
      display: flex;
      flex-direction: column;
      background-color: #17181b;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
    }

    .clean-record-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      border-bottom: 1px solid #23252b;
      font-size: 12.5px;
    }

    .clean-record-row:last-child {
      border-bottom: none;
    }

    .clean-row-left {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .clean-row-title {
      color: var(--text-white);
      font-weight: 500;
    }

    .clean-row-time {
      font-size: 11px;
      color: var(--text-desc);
    }

    .clean-row-score {
      font-size: 13px;
      font-weight: 600;
      text-align: right;
    }

    .score-minus {
      color: #f87171;
    }

    .score-plus {
      color: #4ade80;
    }
  
/* Live plugin UI additions; base styles follow the supplied reference. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
input, textarea, .job-prompt, .job-note { user-select: text; }
.sketch-panel { font-size: 12px; }
.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 11px; color: #9ca3af; flex-shrink: 0; }
#connectionStatus { overflow-wrap: anywhere; }
.connected { color: #8cc9a8; }
.text-button { padding: 5px 2px; border: 0; background: transparent; color: #9ca3af; white-space: nowrap; }
.text-button:hover { color: #fff; }
.panel-scroll-content { min-height: 0; padding-right: 3px; }
.tab-content-panel { flex: 0 0 auto; }
.nav-tabs { margin-bottom: 18px; }
.select-field { width: 100%; }
select.select-field { appearance: auto; }
.ratio-btn, .prompt-chip { color: #b9bdc7; border: 1px solid #383b42; }
.ratio-btn { font-size: 12px; }
.btn-submit { width: 100%; }
.cost-note { font-size: 10px; line-height: 1.6; color: #858e9c; text-align: center; margin: 10px 0 22px; }
.small-note, .small-label { font-size: 11px; line-height: 1.65; color: #939dab; overflow-wrap: anywhere; }
.small-label { margin: 10px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.small-label input[type=file] { width: 100%; font-size: 11px; }
.desktop .web-only { display: none; }
.task-section { padding: 14px 0; border-top: 1px solid #34363c; }
.job-card { background: #25272c; border: 1px solid #34363c; padding: 12px; border-radius: 6px; margin: 10px 0; }
.job-head { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; margin-bottom: 8px; }
.job-kind { color: #cfd5df; font-weight: 600; }
.job-state { color: #9fa8b8; }
.job-state.running { color: #80b2ff; }
.job-state.succeeded { color: #8cc9a8; }
.job-state.failed { color: #f9bb99; }
.job-prompt { line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 76px; overflow: auto; margin-bottom: 6px; }
.job-note, .pending-note { font-size: 11px; color: #d0be93; line-height: 1.65; margin-top: 7px; overflow-wrap: anywhere; }
.job-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.small-button { background: #30333a; color: #c6cfdd; border: 1px solid #454a54; border-radius: 4px; padding: 5px 8px; font-size: 11px; }
.small-button:hover { background: #3a4050; }
.panel-footer { min-height: 43px; padding-top: 10px; }
.user-entry-btn { border: 0; background: transparent; color: #ddd; }
.user-popover-menu.show { display: block; opacity: 1; visibility: visible; }
.user-popover-menu { left: 16px; bottom: 65px; width: calc(100% - 32px); }
.menu-item-row { border: 0; background: transparent; width: 100%; color: #d1d5db; font-size: 12px; text-align: left; }
.dialog-overlay { position: absolute; inset: 0; background: #17181bef; z-index: 700; padding: 20px; display: flex; align-items: center; overflow: auto; }
.dialog-card { width: 100%; padding: 16px; border: 1px solid #3e424c; border-radius: 8px; background: #25272c; max-height: 100%; overflow: auto; }
.field-label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; margin: 16px 0; color: #afb7c5; }
.form-error { color: #ffb4a9; font-size: 12px; margin: 10px 0; line-height: 1.6; }
.auth-switch { margin-top: 14px; width: 100%; }
#settingsForm .small-note { margin: 12px 0; }
#probeBtn { margin: 16px 0 8px; }
#previewImage { max-width: 100%; max-height: 68vh; object-fit: contain; display: block; margin: auto; background: #17181a; }
#payQr { width: 210px; height: 210px; margin: 12px auto; display: block; }
#orderBox .small-button { margin-top: 8px; }
.view-mode-fullscreen .connection-row { visibility: hidden; }
.clean-tier-btn { color: #d1d5db; }
.clean-input-row { font-size: 12px; }
.ref-name { font-size: 10px; padding: 7px; color: #9ba5b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-holder img { width: 100%; height: 100%; object-fit: contain; }
.msg-toast { z-index: 900; white-space: normal; overflow-wrap: anywhere; max-width: calc(100% - 32px); line-height: 1.6; }
@media (min-width: 700px) { body:not(.desktop) .sketch-panel { border-left: 1px solid #303238; border-right: 1px solid #303238; } }

/* Account footer: compact enough for the CEP panel. */
.footer-links { display:flex; align-items:center; gap:9px; flex-shrink:0; font-size:11px; }
.footer-brand { color:#969696; }
.website-link { text-decoration:none; }
.panel-footer .user-entry-btn { min-width:0; max-width:45%; }
.panel-footer .user-name-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:380px) { .footer-links { gap:6px; } .footer-brand { font-size:10px; } .panel-footer { padding-left:12px; padding-right:12px; } }
