/* =====================================================================
   style-4.css —— 番茄专注条 / 设置中心 / 重复任务弹窗 / 小组件窗口 / 番茄浮窗
   本文件样式（沿用既有类名体系）：
   - 构建产物 A   : .tomato-timer* / .fix1 / .icon-link / .cancel-attach-todo
                            base-modal（.modal-container/.modal-tablecloth/.modal*）
                            设置中心（.setting_tabs/.tab-panel/.form-item*）
                            widget 日历下拉菜单
   - 构建产物 B : 浮窗（.floating/.tomato* 等浮窗体系类）
   ===================================================================== */
/* ===== 自 base.css 迁入（番茄记录 tfr-，内容逐字未改；置于头部以保持原级联顺序 base < 本文件）===== */




/* ==================== 番茄专注记录全屏弹窗（对齐.todo-fc 旧版 .tomato-record[scoped-hash]） ==================== */
.tomato-record { padding: 10px 16px; border-bottom: 1px solid var(--line, #f3f3f3); }



.tomato-record:last-of-type { border-bottom: 1px solid transparent; }



.tomato-record:hover { background-color: var(--gray-bg, #f7f8fa); }



.tomato-record__title { display: flex; align-items: center; justify-content: space-between; color: var(--text-1, #333); font-weight: 400; font-size: var(--fs-base); line-height: 20px; }



.tomato-record__title__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.tomato-record__task { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tomato-record__task--free { color: var(--text-3, #909399); }
.tomato-record__range { flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); color: var(--text-3, #909399); }



.tomato-record__title__text { display: flex; align-items: center; }



.tomato-record__title__text__icon { display: block; flex-shrink: 0; width: 14px; height: 14px; margin-left: 10px; background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22><circle cx=%228%22 cy=%228%22 r=%226%22 fill=%22%23ccc%22/></svg>') no-repeat 50%/100% 100%; }



.tomato-record__date { width: 100px; flex-shrink: 0; }



.tomato-record__title__interval { flex-shrink: 0; margin-left: 15px; }



.tomato-record__description { display: flex; align-items: center; margin-top: 10px; }



.tomato-record__description__icon { display: flex; flex-shrink: 0; width: 14px; height: 14px; margin-right: 10px; background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22><circle cx=%228%22 cy=%228%22 r=%226%22 fill=%22%23ccc%22/></svg>') no-repeat 50%/100% 100%; }



.tomato-record__description__text { display: -webkit-box; overflow: hidden; color: #666; font-size: var(--fs-base); line-height: 20px; text-overflow: ellipsis; word-break: break-all; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }




/* 添加记录表单行 */
.tfr-form-row { margin-bottom: 16px; }



.tfr-form-label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: var(--fs-md); }



.tfr-add-info { margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-sm); }



.tfr-add-info .text-primary { color: var(--brand, #0c8172); }




/* 番茄专注记录 · 24h 时间轴：灰轨道=全天，青块=专注时段，hover 显示明细 */
.tfr-timeline { padding: 12px 14px 6px; border-bottom: 1px solid var(--line); }



.tfr-timeline__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px;
}



.tfr-timeline__sum { color: var(--brand); }



.tfr-timeline__bar {
  position: relative; height: 14px; border-radius: var(--radius-md);
  background: #ececec; overflow: hidden;
}



.tfr-timeline__seg {
  position: absolute; top: 0; bottom: 0; background: var(--brand);
  border-radius: var(--radius-xs); cursor: default;
  transition: filter .15s, transform .1s;
}



.tfr-timeline__seg:hover { filter: brightness(1.15); }



.tfr-timeline__scale {
  display: flex; justify-content: space-between;
  font-size: var(--fs-2xs); color: var(--text-3); margin-top: 4px;
}




/* 时间轴小时刻度线与图例 */
.tfr-timeline__grid { position: absolute; inset: 0; pointer-events: none; }



.tfr-timeline__grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .06); }



.tfr-timeline__legend { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--text-3); margin-top: 6px; }



.tfr-timeline__legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-xs); margin-right: 4px; vertical-align: -1px; }



.tfr-timeline__legend .dot-focus { background: var(--brand); }



.tfr-timeline__legend .dot-idle { background: #ececec; }




/* 专注记录：行点击展开详情 + 时间轴定位高亮 */
.tomato-record { cursor: pointer; }



.tomato-record--open { background: #f3f6f6; }



.tomato-record--hot { background: var(--brand-light); box-shadow: inset 3px 0 0 var(--brand); }



.tomato-record__title__interval { display: flex; align-items: center; gap: 6px; }



.tomato-record .expander { font-style: normal; color: var(--text-3); font-size: var(--fs-2xs); transition: transform .18s; }



.tomato-record .expander.open { transform: rotate(180deg); }



.tomato-record__detail {
  padding: 8px 12px 10px 52px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.9;
  border-top: 1px dashed var(--line); animation: qa-chip-pop .15s cubic-bezier(.2, .8, .2, 1);
}



.tomato-record__detail-hint { color: var(--text-3); font-size: var(--fs-xs); }



/* 时间轴被点中的色块短时高亮 */
.tfr-timeline__seg--hot { filter: brightness(1.25); box-shadow: 0 0 0 2px rgba(15, 157, 143, .35); }




/* 时间轴休息块（橙）与记录行休息徽标 */







/* 时间轴日期切换 + 空状态 */
.tfr-timeline__nav { display: inline-flex; align-items: center; gap: 8px; }



.tfr-timeline__date { min-width: 120px; text-align: center; color: var(--text-1); }



.tfr-nav-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel, #fff);
  color: var(--text-2); font-size: var(--fs-md); line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s;
}



.tfr-nav-btn:hover:not(:disabled) { color: var(--brand); border-color: var(--brand); }



.tfr-nav-btn:disabled { opacity: .35; cursor: default; }



.tfr-empty { padding: 26px 0 8px; text-align: center; font-size: var(--fs-sm); color: var(--text-3); }
btn-play|stop|stop2|close）
   ===================================================================== */

/* ==================== 1. 底部番茄专注条（tomato-timer） ==================== */
/*  */
.tomato-timer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 25px;
  background-color: var(--tomato-bg);
  transition: all .2s;
}
.tomato-timer--work { background-color: var(--tomato-bg); }
.tomato-timer--rest { background-color: #f6e8d1; }

.tomato-timer__status {
  position: relative;
  z-index: 1;
  max-width: 40%;
  color: var(--brand-dark);
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: 18px;
  transition: all .2s;
}
.tomato-timer__status > div { display: flex; align-items: center; }
.tomato-timer__status > div:first-of-type { margin-bottom: var(--space-1); }
.tomato-timer__status > div > span { min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tomato-timer__status > div > div:last-of-type { flex-shrink: 0; }
.tomato-timer__status--work { color: var(--brand-dark); }
.tomato-timer__status--rest { color: #f93; }

/* 右侧操作组：贴右缘排布（关联任务/开始专注/完整面板） */
.tomato-timer__right {
  left: auto;
  right: 14px;
  justify-content: flex-end;
  flex-direction: row;
  gap: 14px;
  pointer-events: none;
}
/* 容器穿透点击，但按钮本身必须可点 */
.tomato-timer__right > * { pointer-events: auto; }
.tomato-timer__play,
.tomato-timer__right {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.tomato-timer__play {
  right: 25px;
  width: 138px;
  height: 48px;
  padding: 0;
  color: #fff;
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: 21px;
  background-color: #0c8172;
  border: none;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.tomato-timer__play:focus { outline: 0; box-shadow: 0 0 0 3px rgba(0,140,142,.25); }
.tomato-timer__play:hover { background-color: #008284; }
.tomato-timer__play:active { background-color: #00787a; }
.tomato-timer__play:before {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  content: "";
  background: currentColor;
  -webkit-mask: url('../img/icon-tomato-timer2.svg') center / contain no-repeat;
  mask: url('../img/icon-tomato-timer2.svg') center / contain no-repeat;
}

/* 专注中「■ 放弃专注」品牌青(2026-09-03用户拍板:砖红攻击性太强与品牌不符,放弃语义由文案承载) */
.tomato-timer__play--work { background-color: #bd401e; }
.tomato-timer__play--work:focus { outline: 0; box-shadow: 0 0 0 3px rgba(189,64,30,.25); }
.tomato-timer__play--work:hover { background-color: #b3401e; }
.tomato-timer__play--work:active { background-color: #a9401e; }

/* 休息中：橙色按钮 */
.tomato-timer__play--rest { background-color: #fe9933; }
.tomato-timer__play--rest:focus { outline: 0; box-shadow: 0 0 0 3px rgba(254,153,51,.25); }
.tomato-timer__play--rest:hover { background-color: #f49033; }
.tomato-timer__play--rest:active { background-color: #ea8633; }

/* 大号青色计时数字：点击 = 暂停/继续（实现交互补充） */
.tomato-timer__time {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 26px;
  line-height: 42px;
  cursor: pointer;
  transition: all .2s;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  pointer-events: auto;
}
.tomato-timer__time--rest { color: #f93; }

/* 番茄放弃确认 popover 与浮窗入口 */
.tt-pop-actions { margin: 0; text-align: right; }
@media (max-width: 605px) {
  .tomato-timer__time { margin-right: 0; }
}
@media print {
  .tomato-timer { display: none; }
}

/* —— 白噪音 / 关联任务胶囊：外层相对定位 + 隐藏 el-select 覆盖层 —— */
/* 待开始态的关联任务胶囊（同款样式族） */

/* ==================== 2. base-modal 弹窗体系（modal-container/modal-tablecloth/modal） ==================== */
.modal-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* 低于 Element UI 弹层基线(2000+)：设置内部的 select/date-picker 下拉与 $confirm 才能浮在弹窗之上 */
  z-index: var(--z-modal) !important;
  background-color: rgba(0,0,0,.25);
  animation: tt-fade-in .2s ease both;
}
.modal-tablecloth {
  position: absolute;
  left: 235px;
  bottom: 110px;
  top: 30px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-tablecloth--top { align-items: flex-start; }
.modal-tablecloth--body { left: 0; right: 0; top: 0; bottom: 0; }
.modal {
  flex-shrink: 0;
  max-height: 100%;
  max-width: 100%;
  background-color: var(--panel, #fff);
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* 统一关闭钮:定位壳(尺寸保持 28px 命中区,加载序在 base 后故压过 .close-x 的 18px),
   叉形/hover(danger 高亮)/按压反馈全部来自统一 .close-x 体系——组件里必须写 class="modal__close close-x",
   此处不再自造 ::after 叉与自有 hover */
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border: 0; border-radius: var(--radius-md);
  background: transparent; cursor: pointer; z-index: 3;
}
.modal__header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  gap: var(--space-1);
  align-items: center;
  padding: 15px;
  color: var(--brand-dark);
  font-size: var(--fs-base);
  line-height: 18px;
  border-bottom: 1px solid #f3f3f3;
}
.modal__header--header-no-padding { padding: 0; border-bottom: 0 solid #f3f3f3; }
.modal__body { flex: 1; padding: 15px; overflow: auto; }
.modal__body--body-no-padding { padding: 0; }
.modal__footer {
  flex-shrink: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  padding: 15px;
  border-top: 1px solid #f3f3f3;
}
@keyframes tt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==================== 3. 设置中心（全屏 base-modal + setting_tabs + form） ==================== */
/* 设计稿设置 = 全屏弹窗：header 为 el-tabs 页签，body 内 .tab-panel>.form>.form-label+.form-item */
.setting_tabs { height: 100%; width: 100%; }
.setting_tabs .el-tabs__header { margin: 0 !important; }
/* EP 的下划线 translateX 按 nav 内 offsetLeft 计算，nav 不能再加 padding（会双重偏移）；内缩改到 header 上 */
/* 下划线已改为页签自绘 ::after，nav 内边距不再影响对齐，安全 */
.setting_tabs .el-tabs__nav { padding-left: 20px !important; }
/* 修复输入框“双框”：Element Plus 结构是 wrapper+inner 双层，而全局旧 element-ui 样式
   会给内层 input 再画一道边框——有 wrapper 时内层一律去边框，聚焦色统一品牌青 */
.el-input__wrapper .el-input__inner { border: none !important; box-shadow: none !important; background: transparent; }
.el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--brand, #0c8172) inset !important; }

/* 去掉打开设置时活动标签自带的焦点高亮（element-ui 的蓝色内发光 + 浏览器 outline），激活态由下划线表达 */
.setting_tabs .el-tabs__item:focus,
.setting_tabs .el-tabs__item:focus-visible,
.setting_tabs .el-tabs__item:focus.is-active.is-focus:not(:active) { outline: none !important; box-shadow: none !important; }
/* EP 下划线由内联 transform 自动对齐页签，无需 element-ui 时代的 left 偏移 */
/* EP 默认会去掉第 2 个页签的左 padding（nth-child(2)）和最后 1 个页签的右 padding（last-child），
   导致页签内边距不均匀、自绘下划线除第一个页签外全部错位——设置弹窗内恢复均匀 20px，
   配合下方对称 ::after（left/right 各 20px），下划线宽度恒等于文字宽度 */
.setting_tabs .el-tabs__item:nth-child(2) { padding-left: 20px !important; }
.setting_tabs .el-tabs__item:last-child { padding-right: 20px !important; }
.setting_tabs .el-tabs__item.is-active,
.setting_tabs .el-tabs__item:hover { color: var(--brand-dark); }
/* EP 的活动条 translateX 计算在本布局下恒定偏右 20px（JS 内部测量），弃用之；
   改用活动页签自身 ::after 画下划线 */
.setting_tabs .el-tabs__active-bar { display: none !important; }
.setting_tabs .el-tabs__item { position: relative; }
.setting_tabs .el-tabs__item.is-active::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 2px; background: var(--brand-dark); border-radius: var(--radius-xs);
}

.settings-modal-body { color: var(--text-1); }
.tab-panel { padding: var(--space-5) var(--space-4); }
/* 分组卡片:每张卡一个设置组(Notion/Linear 式),替代长列表堆叠 */
.tab-panel .form {
  background: var(--panel, #fff);
  border: 1px solid var(--line-strong, #e4e7ed);
  border-radius: var(--radius-lg, 10px);
  padding: 6px 18px 14px;
  margin-bottom: 16px;
}
.form { max-width: 100%; }
/* 分区标题：节奏走 spacing token（16/12），去掉与 .hr 的双重叠加 */
.tab-panel .form-label { margin: var(--space-4) 0 var(--space-3); color: var(--brand); font-weight: 500; font-size: var(--fs-base, 14px); }
.form-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: 16px;
}
/* 标签左对齐自然宽度：原 180px 定宽+右对齐使短标签悬在列中间，观感割裂 */
.form-item__label {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text-1);
  font-weight: 500;
  font-size: var(--fs-md);
  line-height: 1.5;
  text-align: left;
}
.form-item__control {
  display: flex;
  margin-left: auto;
  min-width: 0;
  max-width: 60%;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
/* 控件宽度档位（设置页统一三档，替代原 8 档内联 px） */
.ctl-sm { width: 110px; }
.ctl-md { width: 160px; }
.ctl-lg { width: 260px; }
.form-item__control input, .form-item__control select {
  display: block;
  height: 24px;
  padding: 0 10px;
  font-size: var(--fs-base, 14px);
  line-height: 1;
  border: 1px solid var(--line-strong, #e4e7ed);
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  color: inherit;
}
.form-item__control input:focus, .form-item__control select:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px var(--brand-focus-ring, rgba(15, 157, 143, .15));
}
.form-item__control__append {
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--text-3);
  font-weight: 400;
  font-size: var(--fs-base, 14px);
  line-height: 1.4;
}
.form-item__tip {
  width: 100%;
  margin-top: 8px;
  margin-left: 0;
  color: var(--text-3);
  font-size: var(--fs-sm, 12px);
  line-height: 1.5;
  word-break: break-word;
}
.hr { height: 1px; background-color: var(--line); margin: var(--space-2) 0; border: none; }
.tip { color: var(--text-3); font-size: var(--fs-sm, 12px); word-break: break-word; }

/* 独立 BrowserWindow 为 frameless+transparent：页面根须透明（QuickAdd/番茄浮窗在 <html> 上挂 widget-transparent） */
html.widget-transparent,
html.widget-transparent body,
html.widget-transparent #app {
  background: transparent !important;
  height: 100%;
  overflow: hidden;
}

/* —— 浏览器预览模式（番茄浮窗在 5175 调试宿主打开时挂 widget-preview）：
      卡片按浮窗真实尺寸 240×86 居中呈现，配桌面感深色背景；放大态用类名表达，不再拉满整页 —— */
html.widget-preview, html.widget-preview body, html.widget-preview #app { height: 100%; }
html.widget-preview body { overflow: hidden; }
html.widget-preview .floating {
  position: static;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(15,157,143,.16), transparent 60%),
    linear-gradient(135deg, #202a38 0%, #171e29 55%, #1d2b33 100%);
}
html.widget-preview .tomato {
  width: 240px;
  height: 86px;
  flex: 0 0 auto;
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1);
}
/* 双类选择器提特异性：多轮编辑后规则顺序不再可靠，必须稳压后面 .tomato 块的 height:86px */
.tomato.tomato--expand-menu { width: 240px; height: 320px; }
/* 同卡展开退役：放弃面板免填原因稳定版 86px 即容纳，卡片不再生长 */
html.widget-preview .tomato--expand-menu { width: 240px; height: 320px; }

/* —— 全局快速添加小窗（scoped）：悬浮输入条卡片 —— */
.qapage { width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: center; }
.qapage__card {
  width: 100%; border-radius: var(--radius-lg); background: var(--panel, #fff);
  box-shadow: 0 8px 32px rgba(0,0,0,.18); padding: 8px 6px;
}

/* ==================== 5. 番茄悬浮窗（floating-tomato，scoped） ==================== */
.floating {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  /* 窗口与卡片同尺寸：padding 会留出透明边+裁切投影形成脏边，必须为 0（用户实测） */
  padding: 0;
  /* 卡片锚定右下：放大窗口时右/下边缘不动，向左上生长（用户定稿的展开方向） */
  align-items: flex-end;
  justify-content: flex-end;
}
.tomato {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  background-color: var(--panel, #fff);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
  cursor: move;
}
.tomato__time {
  flex-shrink: 0;
  color: var(--text-2);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tomato__control-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
}
.tomato__control { flex-shrink: 0; -webkit-app-region: no-drag; }
.tomato--work .tomato__control .btn,
.tomato--work .tomato__time,
.tomato__control .btn { color: var(--brand-dark); }
.tomato--reset .tomato__control .btn,
.tomato--reset .tomato__time { color: #f93; }
/* 限定到番茄钟控制区：裸 .btn 会波及回收站/待办箱的工具按钮 */
.tomato__control .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
}
.tomato__control .btn i { display: block; }
.tomato__control .btn--muted { color: var(--text-4) !important; }
.btn-play {
  width: 14px;
  height: 16px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAACLElEQVRIS73W0WvTUBTH8e8dnU/W+Qf45rMK/lvKHtI0XaqYC4q01cqoqNCHSUEUHIIU9zJ9mBOkyJiCIGMMEZHhgzqxrbo2yZHY1s6ysqZNdiEQEjif/JJ7DlEEK58/QSLxBFEKn1ks4/nf6zEsBSiuFa8zpYxu/Qa+lHFbV7DtnahNhdZHSR4LEp0dKL6G+FlM82mUaAAeJ5lcBXVqn8K7iJTx3ByZzHYUsCKXmyFxZBXF6eEFZQtfOaSNB4BMAo8IdgnhIfgOprkxLhoODBSRbQRNs34Xrd2wcHiwJ4hU8T0Hy3oTBh0f7KTdAcnRaJTQ+vco8GTgv7Q8w2vbZDJrB6HRgJ20dYQSTXUDbXwbBkcH9oV1PNfGspb3Q+MAA6eNSAXPdQYHRlxgJ5zIBoiNaT7upY0X7KAuwjzt3RzZ7Nf4wf5OPodp3D5E0J/FNG8eEij3aLUcbPt9vKDIF5CrNBp3epMoTnAZZI5U6vXefowD/Ij4l9ncrFAutwebPzow2P6K+91v9SHe0SbyDoVNKlWNe3i3QRbwPI1lfT4IC+5P8krX8b1LpNNLo0ATjDb5BcxTrxfQ+nsYLHxCkZeIf4F0eiUsFC5h0MCiCjR/3ELrn+Ni/YTT0y+G/AgH076Kqy4yZ7ydBOonzOeTJBIBeOa/gsInlDjUahUWF70osE7C4CgWS6DOd4sKwiPa2NjGVlRQP2FwViicZCqxAjKDkOJVbSHKVHsf+g/IPxQwDBpbNAAAAABJRU5ErkJggg==') no-repeat 50%;
  background-size: 14px 16px;
}
.btn-stop {
  width: 14px;
  height: 14px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAA6UlEQVRIS+2WMWoCQRSGvzdjIcS19jKSyhMkGvYCwWNMrbs5QmqF5AABLTxQIKBN4jpPdlewsJANszbOawZmeO/jfUzxC3UJWTZEdYCaw+kuzCHeYsw32+0G5wrBuQ5JkqO8ItINQ7mYskf9J0UxFWZvj1jWgG0Jdh6rfizk+QvIonVYCaiAs/wJKx83AR70OQLDmo5Kw/oEotKotLGB+GkaK7vWEJVeM9T4/U6UzucTjF021vOfhipEZdkIMV9VGG67PGkZhLv0kndE0lZ5qmv+ftN6K+d6PPRHlLHciwYFG60Zu90K536OrmyPWvmzy2EAAAAASUVORK5CYII=') no-repeat 50%;
  background-size: 14px 14px;
}
.btn-stop2 {
  width: 14px;
  height: 14px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAA8klEQVRIS+2WPU5CQRRGzzeP4hV2NNBZU/mwJlSswL+8DRhbd/A2QClSWWsCCyCRwhXgMmxM6EwU55oHhaEiQwYb55Yz892TOTPFFYCBGBc9TC2w73otXilD9s7b4kUVK1lFg/bpELgG8nigrU5fYFPQjWxU9MncHMgOBPtta/5CNu5eIT0eHLZ+uxp4X5zh3ORPgN6fJ2Bc00lpXJ9AUpqUBhtInyZY2a5AUrrLUPD+f1HavcTpKVjPPoHN1HYyQG4G0j49gjLel7LqOKfVfECUQeHQw2ZzPq1c38ruOke4fIAsw+rJP2KJjbkPe9bt6/IHVq2dSfbOBrcAAAAASUVORK5CYII=') no-repeat 50%;
  background-size: 14px 14px;
}
.btn-close {
  width: 12px;
  height: 10px;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAABP0lEQVRIS7VVMU7EMBDcpUyVig9gF1Rp8gDEC+jzB4SAO0TnDnHHnRB/cM8LEA9Ik4pizQeoUqVkkS1HJLnEd5HOLhJF3vHszmzWCH4R0RkivgPAhxDiBgC43TvwjcaYVwC4ZOYrKeW3xaF9VFV1miTJJyKe229m3kop72eQIBG9IOKtx381TXORZdmPIyjLMknT9AkArttsZ5D0Dvf4t7quH/M8bxyBXzuBzLyRUi4ClVjMGhHvphLrEjjJ9gHmJjQkAKXUSVEUNiun54QnY9VutdYLpdRvtyl2CAJyWeOdFES02ZPAv+6BFhwzb+3jrS9T1fWOnKrABXm5Vl0Tu2jbBFrr5VCWQyTqZWGMeQaA5aDalRDiIaCA2wpW0IKjEcSWKKrJo31+lDaN/aNFHRXxhl30cR39wvEDLMqV+QeV7TQk/RFG2gAAAABJRU5ErkJggg==') no-repeat 50%;
  background-size: 12px 10px;
}
.btn-dots {
  width: 12px; height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 14%22><circle cx=%222%22 cy=%222%22 r=%221.6%22 fill=%22%23999%22/><circle cx=%222%22 cy=%227%22 r=%221.6%22 fill=%22%23999%22/><circle cx=%222%22 cy=%2212%22 r=%221.6%22 fill=%22%23999%22/></svg>') no-repeat 50%;
  background-size: 4px 12px;
}

/* —— 最终形态（2026-08-31 用户定稿「极淡灰描边+圆环主键」）：内部永远纯白不变色，
      唯一进度元素 = 右下角圆环主键；极淡灰描边负责圈住卡片 —— */
.tomato {
  position: relative;
  display: block;
  width: 240px;
  height: 86px;
  flex-shrink: 0;
  /* 尺寸过渡是丝滑的关键：OS 窗口瞬移一次（右下锚定，视觉不变），
     生长/收回动画全部由这条 GPU 合成的 CSS 过渡完成 */
  transition: width .2s cubic-bezier(.2, .8, .2, 1), height .2s cubic-bezier(.2, .8, .2, 1);
  /* 纯白定稿：不随深浅主题变化的内部底色（深色由 html.dark 块整体接管） */
  background: #fff; /* 纯白定稿(白名单登记,见 check-tokens WHITELIST) */
  border: 1px solid rgba(120, 130, 140, .22);
  border-radius: 14px;
  /* Electron 私有属性：连续曲率圆角（更接近 iOS 的平滑圆角），旧版本自动忽略 */
  -electron-corner-smoothing: 60%;
  /* 窗口与卡片同尺寸：任何向外 box-shadow 都会被窗口边界硬裁切成脏边（用户实测），
     故浮窗卡片禁止外投影，1px 描边即视觉边界 */
  box-shadow: none;
  cursor: move;
}
.tomato__info {
  /* 内容锚定卡片底边：卡片向上生长时（展开动画）文字纹丝不动，只有留白区在长——精细化控制 */
  position: absolute;
  left: 16px;
  bottom: 10px;
  right: 62px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tomato__time {
  color: var(--text-1, #2b2f33);
  font-weight: 700;
  font-size: 19px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  /* 旧版浮窗遗留的 text-align:center 会让时间在整行里居中、与「关联」行错位，强制左对齐 */
  text-align: left;
}
.tomato__time small { font-size: 9px; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--text-3, #9aa0a6); }
.tomato__task {
  color: var(--text-3, #9aa0a6);
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tomato__task b { color: var(--brand-dark, #0c8172); font-weight: 500; }
.tomato__task-none { color: var(--text-3, #9aa0a6); }
.tomato__task-x { margin-left: 2px; } /* 叉形/hover 由统一 close-x 体系负责 */
.tomato__beads { display: flex; gap: 3px; margin-top: 1px; }
.tomato__beads i { width: 5px; height: 5px; border-radius: 50%; background: rgba(15, 157, 143, .18); }
.tomato__beads i.done { background: var(--brand, #0f9d8f); }

/* 右上角迷你钮：最小化/关闭/⋮，淡显、hover 全亮 */
.tomato__corner {
  position: absolute;
  top: 4px;
  right: 5px;
  display: flex;
  gap: 2px;
  opacity: .3;
  transition: opacity .15s;
}
.floating:hover .tomato__corner,
.tomato__corner:focus-within { opacity: 1; }
.corner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: background .15s;
}
.corner-btn i { display: block; transform: scale(.75); }
.corner-btn:hover { background: rgba(15, 157, 143, .12); }
.corner-btn--on { background: var(--brand-light, #e7f7f7); opacity: 1; }
/* 放弃确认期间：⋮ 灰色禁用态（不可点） */
.corner-btn--off {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}
.corner-btn--off:hover { background: transparent; }
.corner-btn--muted { color: var(--text-4, #c0c4cc); }
.btn-min {
  width: 8px; height: 8px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 8%22><rect x=%220%22 y=%223.25%22 width=%228%22 height=%221.5%22 rx=%22.75%22 fill=%22%23999%22/></svg>') no-repeat 50%;
  background-size: 8px 8px;
}

/* 圆环主键：唯一进度元素 */
.tomato__knob {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel, #fff);
  box-shadow: 0 3px 10px rgba(20, 40, 40, .2);
  cursor: pointer;
}
.tomato__knob:hover { box-shadow: 0 3px 14px rgba(15, 157, 143, .4); }
.tomato__knob svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tomato__ring-bg, .tomato__ring-fg { fill: none; stroke-width: 2.5; }
.tomato__ring-bg { stroke: rgba(15, 157, 143, .15); }
.tomato__ring-fg { stroke: var(--brand, #0f9d8f); stroke-linecap: round; transition: stroke-dasharray .3s linear, stroke .2s; }
.tomato--rest .tomato__ring-fg { stroke: #f99333; }
.tomato__knob-icon { position: relative; z-index: 1; font-size: 10px; line-height: 1; color: var(--brand-dark, #0c8172); font-style: normal; }
.tomato--rest .tomato__knob-icon { color: #e8862a; }

/* 休息徽标：从圆环左侧弹出（不占番茄珠行） */
.tomato__badge {
  position: absolute;
  right: 56px;
  bottom: 10px;
  z-index: var(--z-float-base);
  padding: 2px 8px;
  border-radius: 9px;
  background: #f99333;
  color: #fff;
  font-size: 9px;
  box-shadow: 0 2px 8px rgba(249, 147, 51, .35);
  animation: tt-fade-in .2s ease both;
}

/* —— ⋮ 任务菜单：窗口临时放大（220×320）后铺满卡片，选今日待办其一即关联开始 —— */
.tf-menu {
  position: absolute;
  inset: 0;
  z-index: var(--z-float-noise);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px 10px;
  /* 与卡片同款玻璃白（勿用 var(--panel)：暗色主题下会变成深灰，和玻璃卡不协调） */
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
  animation: tt-fade-in .15s ease both;
}
.tf-menu__head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tf-menu__title { color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.tf-menu__x { margin-left: auto; } /* 叉形/hover 由统一 close-x 体系负责 */
.tf-menu__list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(120,130,140,.35) transparent; }
.tf-menu__list::-webkit-scrollbar { width: 4px; }
.tf-menu__list::-webkit-scrollbar-thumb { background: rgba(120,130,140,.35); border-radius: 2px; }
.tf-menu__list::-webkit-scrollbar-track { background: transparent; }
.tf-menu__item {
  border: 0; background: none; text-align: left; cursor: pointer;
  /* flex-shrink:0 关键：任务多时子项保住自然高度让容器溢出滚动，
     否则 flex 默认把每个子项等比压扁=间距消失(2026-09-02 用户实拍) */
  flex-shrink: 0;
  padding: 6px 8px; border-radius: var(--radius-sm, 4px);
  color: var(--text-1); font-size: 12px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tf-menu__item:hover { background: var(--brand-light, #e7f7f7); color: var(--brand-dark); }
/* 已关联项高亮：✓ 标记 + 淡青底，选中状态在菜单里一眼可见 */
.tf-menu__item { display: flex; align-items: center; gap: 4px; }
.tf-menu__item-text { min-width: 0; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-menu__item--on, .tf-menu__item--on:hover { background: var(--brand-light, #e7f7f7); color: var(--brand-dark); font-weight: 600; }
.tf-menu__tick { flex-shrink: 0; font-style: normal; font-size: 10px; color: var(--brand, #0f9d8f); }
.tf-menu__empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 16px 0; }
.tf-menu__bare {
  flex-shrink: 0; margin-top: 6px; padding: 6px;
  border: 1px dashed var(--line-strong, #e4e7ed); border-radius: var(--radius-sm, 4px);
  background: none; color: var(--text-2); font-size: 12px; cursor: pointer;
}
.tf-menu__bare:hover { border-color: var(--brand); color: var(--brand); }


/* 过渡：取消/关闭丝滑淡出 */
/* 打开=快切（无缩放：transform 会让面板边缘移动，产生跳感）；关闭=纯透明度淡化 */
.tf-pop-enter-active { transition: opacity .12s ease; }
.tf-pop-leave-active { transition: opacity .18s ease; }
.tf-pop-enter-from, .tf-pop-leave-to { opacity: 0; }
/* 遮罩层已删（用户定稿只要卡片本身）：tf-abandon 即弹窗卡片，绝对居中。
   translate 属性负责居中位移，transform 只做过渡缩放，两者互不打架 */
.tf-abandon__title { font-size: 11px; font-weight: 600; color: var(--text-1, #2b2f33); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-abandon__meta { flex-shrink: 0; font-size: 9px; color: var(--text-3, #9aa0a6); }
.tomato .tf-abandon .mini {
  background: #f5f7f8;
  color: #2b2f33;
  border: 1px solid #e0e5e9;
}
.tomato .tf-abandon .mini:hover { background: #ecf0f2; }
.tomato .tf-abandon .mini.danger {
  background: #fef0f0;
  color: #d9534f;
  border-color: transparent;
}
.tomato .tf-abandon .mini.danger:hover { background: #fde3e3; }
.tomato .tf-abandon .abandon-reason-input { background: var(--panel, #fff); color: #2b2f33; }



/* ====== 设计稿精确布局 ====== */
.tomato-bar.tomato-timer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex-shrink: 0;
  padding: 0 25px;
  background-color: var(--tomato-bg);
  transition: all .2s;
  overflow: visible;
}
.tomato-timer--rest { background-color: #f6e8d1; }
.tomato-timer__status {
  position: relative; z-index: 1; max-width: 40%;
  color: var(--brand-text); font-weight: 400; font-size: var(--fs-sm); line-height: 18px;
}
.tomato-timer__status .tb-row {
  display: flex; align-items: center; gap: var(--space-1);
}
.tomato-timer__status .tb-row + .tb-row { margin-top: 5px; }
.tomato-timer__center {
  position: absolute; top: 0; bottom: 0; right: 0; left: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.tomato-timer__center > * { pointer-events: auto; }
.tomato-timer__time {
  color: var(--brand-dark); font-weight: 600; font-size: 26px; line-height: 42px;
  font-variant-numeric: tabular-nums;
}
.tomato-timer__time--rest { color: #fe9933; }
.tomato-timer__play {
  position: absolute; right: 25px; top: 0; bottom: 0; margin: auto;
  width: 138px; height: 48px; padding: 0;
  color: #fff; font-weight: 400; font-size: var(--fs-lg); line-height: 21px;
  border: none; border-radius: var(--radius-sm); transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* —— 窄条变体：非今日视图专注/休息进行中的兜底形态（相位+倒计时+放弃，收成/白噪音/小窗已 v-if 收起） —— */
.tomato-bar--slim { padding: 0 16px; }
.tomato-bar--slim .tomato-timer__status { max-width: 46%; }
.tomato-bar--slim .tomato-timer__time { font-size: 18px; line-height: 24px; }
.tomato-bar--slim .tomato-timer__play { width: 108px; height: 30px; font-size: var(--fs-sm); }

/* —— 设置中心：全屏式改为居中无边框卡片弹窗。
      顶边从 25px 开始避开窗口标题栏（蓝色区域），卡片圆角+投影与内容脱钩 —— */
.modal-container--settings { top: 25px; }
.modal--settings {
  width: 680px;
  height: min(78vh, 620px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}


/* —— 设置卡片标签行紧凑化（卡片弹窗形态）：行高 50→44、与内容齐平，
      去掉 Element 默认灰底线改用发丝线分隔。需 !important 压过上方全屏版规则 —— */
.modal--settings .setting_tabs .el-tabs__nav { height: 44px !important; }
.modal--settings .setting_tabs .el-tabs__item { height: 44px !important; line-height: 44px !important; }
.modal--settings .setting_tabs .el-tabs__nav-wrap::after { display: none; }
.modal--settings .setting_tabs .el-tabs__header { border-bottom: 1px solid #f3f3f3; }
/* 番茄目标 input-number 纳入 110px 档位（压过 base.css 的 .modal 100px 孤值） */
.modal--settings .el-input-number--small { width: 110px; }

/* —— 控件高度档位统一（全局）：.mini/.mini-lg/.danger-btn 收敛到 24px 档。
      base.css 不便改动，此处后加载覆盖生效；全局生效属预期（统一档位正是目的） —— */
.mini { padding: var(--space-1) var(--space-3); }
.mini-lg { padding: var(--space-1) var(--space-4); }
.danger-btn { padding: var(--space-1) var(--space-3); background: var(--danger-soft, #fef0f0); }

/* —— 弹窗卡片统一进场：fade + 上移 + 轻缩放（180ms 快进慢出）。
      .modal 均为 v-if 挂载，动画每次打开自动播放；离场不做（v-if 直接卸载） —— */
.modal { animation: modal-pop .18s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ==================== 预览模式（浏览器/主应用访问小组件路由） ====================
   桌面小组件窗口本体保持深色玻璃（贴桌面壁纸）；浏览器/主应用预览时套用项目 tokens。 */

/* ===== 首启配置向导（OnboardingWizard）===== */
.ob-mask {
  position: fixed; inset: 0; z-index: var(--z-notify);
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.ob-card {
  width: 460px; max-width: calc(100vw - 48px);
  background: var(--panel, #fff); color: var(--text-1);
  border-radius: var(--radius-lg, 12px);
  padding: 32px 36px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
}
.ob-title { margin: 0; font-size: 22px; font-weight: 600; text-align: center; }
.ob-sub { margin: var(--space-2, 8px) 0 var(--space-5, 20px); font-size: var(--fs-md); color: var(--text-3); text-align: center; }
.ob-step__title { margin: 0 0 var(--space-1, 4px); font-size: var(--fs-lg); font-weight: 600; }
.ob-step__sub { margin: 0 0 var(--space-4, 16px); font-size: var(--fs-sm); color: var(--text-3); }
.ob-opts { display: flex; gap: var(--space-2, 8px); flex-wrap: wrap; }
.ob-opt {
  padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--text-1); font-size: var(--fs-md); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.ob-opt:hover { border-color: var(--brand); }
.ob-opt--on { border-color: var(--brand); background: var(--brand-light); color: var(--brand-text); font-weight: 600; }
.ob-cats { display: flex; gap: var(--space-2, 8px); margin-bottom: var(--space-4, 16px); }
.ob-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--gray-bg); font-size: var(--fs-sm); color: var(--text-2);
}
.ob-cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brand)); }
.ob-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.ob-foot__main { display: flex; gap: var(--space-2, 8px); }
.ob-link { border: 0; background: none; color: var(--text-3); font-size: var(--fs-sm); cursor: pointer; padding: 6px 4px; }
.ob-link:hover { color: var(--text-2); text-decoration: underline; }
.ob-btn {
  padding: 8px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: transparent; color: var(--text-1); font-size: var(--fs-md); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.ob-btn:hover { border-color: var(--brand); color: var(--brand); }
.ob-btn--primary:hover { color: #fff; } /* 实心主按钮白字不被 hover 变色改写(hover 对比度门禁) */
.ob-btn--primary { background: #0b8276; border-color: #0b8276; color: #fff; } /* 白字4.7:1(axe serious),品牌观感同实心主按钮 */
.ob-btn--primary:hover { background: var(--brand-hover); color: #fff; }

/* 首旅旅程·拖拽阶段横幅(无遮罩:拖拽需要列表和时间轴两端都可交互) */
.tour-journey-banner {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  z-index: var(--z-modal, 3000);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: var(--radius-md, 10px);
  background: var(--brand); color: #fff; font-size: var(--fs-md, 14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.tour-journey-skip {
  border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius-pill, 999px);
  background: transparent; color: #fff; font-size: var(--fs-sm, 13px);
  padding: 4px 12px; cursor: pointer; white-space: nowrap;
}
.tour-journey-skip:hover { background: rgba(255, 255, 255, .15); }

/* ===== 设置页软件更新区块 ===== */
.upd-version { font-size: var(--fs-sm); color: var(--text-2); }
.upd-hint { margin-left: var(--space-2, 8px); font-size: var(--fs-sm); color: var(--text-3); }

/* —— 暂停/继续 + 收起到托盘（新增按钮） —— */
.btn-pause {
  width: 12px; height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 14%22><rect x=%221%22 y=%221%22 width=%224%22 height=%2212%22 rx=%221%22 fill=%22%23ccc%22/><rect x=%227%22 y=%221%22 width=%224%22 height=%2212%22 rx=%221%22 fill=%22%23ccc%22/></svg>') no-repeat 50%;
  background-size: 12px 14px;
}
.btn-resume {
  width: 14px; height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 14 14%22><path d=%22M3 1l10 6-10 6z%22 fill=%22%23ccc%22/></svg>') no-repeat 50%;
  background-size: 14px 14px;
}
.btn-dock {
  width: 14px; height: 12px;
  background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 14%22><rect x=%221%22 y=%221%22 width=%2214%22 height=%229%22 rx=%221.5%22 fill=%22none%22 stroke=%22%23ccc%22 stroke-width=%221.5%22/><rect x=%225%22 y=%2211%22 width=%226%22 height=%222%22 rx=%221%22 fill=%22%23ccc%22/></svg>') no-repeat 50%;
  background-size: 14px 12px;
}

/* 快捷键捕获按钮 */
.sc-capture {
  min-width: 120px; height: 28px; border: 1px solid var(--line, #ddd); border-radius: var(--radius-sm);
  background: var(--gray-bg, #f5f5f5); color: var(--text-1); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); transition: border-color .15s, background .15s;
}
.sc-capture:hover { border-color: var(--brand, #008d8e); }
.sc-capture.listening { border-color: var(--brand, #008d8e); background: var(--brand-light, #e7f7f7); color: var(--brand); }
.sc-capture.listening .sc-kbd { animation: scBlink 1s infinite; }
@keyframes scBlink { 50% { opacity: .4 } }
.sc-capture.conflict { border-color: #f56c6c; }
.sc-kbd { font-family: monospace; font-size: var(--fs-sm); letter-spacing: 1px; }


/* ============ 设置搜索（跨页签过滤） ============ */
.settings-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 var(--space-4); padding: 7px 12px;
  /* 右侧让出关闭钮(close 锚在弹窗右上角,竖直方向与搜索行同高):整条输入带右缩 40px,不钻到钮底下 */
  margin-right: 40px;
  background: var(--gray-bg, #f8f8f8); border-radius: var(--radius-md);
}
.settings-search .app-icon { color: var(--text-3); flex-shrink: 0; }
.settings-search__input {
  flex: 1; border: 0; background: none; outline: none;
  color: var(--text-1); font-size: var(--fs-md); line-height: 1.5;
}
.settings-search__input::placeholder { color: var(--text-3); }
.settings-search__clear {
  border: 0; background: none; color: var(--text-3); cursor: pointer;
  font-size: var(--fs-sm); padding: 2px 6px; border-radius: var(--radius-sm);
}
.settings-search__clear:hover { color: var(--text-1); background: var(--hover-bg, rgba(0,0,0,.05)); }
.settings-search-empty { text-align: center; color: var(--text-3); font-size: var(--fs-md); padding: 40px 0; }

/* ==================== 6. 浮窗深色主题适配（html.dark 由 applyColorMode 统一挂载） ==================== */
html.dark .tomato { background: #22262e; border-color: rgba(255,255,255,.12); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
html.dark .tomato__time { color: #e8edf1; }
html.dark .tomato__time small { color: rgba(232,237,241,.55); }
html.dark .tomato__task { color: rgba(232,237,241,.5); }
html.dark .tomato__task b { color: #7fd0c7; }
html.dark .tomato__task-none { color: rgba(232,237,241,.4); }
html.dark .tomato__task-x { color: rgba(232,237,241,.5); }
html.dark .tomato__task-x:hover { background: rgba(255,255,255,.1); color: #e8edf1; }
html.dark .tomato__beads i { background: rgba(53,194,174,.22); }
html.dark .tomato__beads i.done { background: #35c2ae; }
html.dark .corner-btn { color: rgba(232,237,241,.65); }
html.dark .corner-btn:hover { background: rgba(53,194,174,.18); }
html.dark .corner-btn--muted { color: rgba(232,237,241,.35); }
html.dark .tomato__knob { background: #22262e; }
html.dark .tomato__ring-bg { stroke: rgba(53,194,174,.25); }
html.dark .tomato__ring-fg { stroke: #35c2ae; }
html.dark .tomato--rest .tomato__ring-fg { stroke: #ffa95c; }
html.dark .tomato__knob-icon { color: #7fd0c7; }
html.dark .tomato--rest .tomato__knob-icon { color: #ffa95c; }
html.dark .tomato__badge { background: #e8862a; }

/* ⋮ 菜单深色 */
html.dark .tf-menu { background: #22262e; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
html.dark .tf-menu__title { color: #7fd0c7; }
html.dark .tf-menu__x { color: rgba(232,237,241,.55); }
html.dark .tf-menu__x:hover { background: rgba(255,255,255,.1); color: #e8edf1; }
html.dark .tf-menu__item { color: #e8edf1; }
html.dark .tf-menu__item:hover { background: rgba(53,194,174,.15); color: #7fd0c7; }
html.dark .tf-menu__item--on, html.dark .tf-menu__item--on:hover { background: rgba(53,194,174,.18); color: #7fd0c7; }
html.dark .tf-menu__tick { color: #35c2ae; }
html.dark .tf-menu__empty { color: rgba(232,237,241,.4); }
html.dark .tf-menu__bare { border-color: rgba(255,255,255,.16); color: rgba(232,237,241,.7); }
html.dark .tf-menu__bare:hover { border-color: #35c2ae; color: #7fd0c7; }

/* 放弃弹窗深色（带 .tomato 提升特异性，压过浅色强制作用域） */
html.dark .tomato .tf-abandon {
  --text-1: #e8edf1; --text-2: rgba(232,237,241,.6); --text-3: rgba(232,237,241,.4);
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.15);
  --brand: #35c2ae; --brand-dark: #7fd0c7; --brand-light: rgba(53,194,174,.18);
  background: #22262e;
  color: #e8edf1;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
html.dark .tomato .tf-abandon .mini {
  background: rgba(255,255,255,.08);
  color: #e8edf1;
  border: 1px solid rgba(255,255,255,.14);
}
html.dark .tomato .tf-abandon .mini:hover { background: rgba(255,255,255,.14); }
html.dark .tomato .tf-abandon .mini.danger {
  background: rgba(249,83,74,.16);
  color: #f3837a;
  border-color: transparent;
}
html.dark .tomato .tf-abandon .mini.danger:hover { background: rgba(249,83,74,.26); }

/* ==================== 4.5 设置中心:左侧分类导航版式 ==================== */
.modal--settings-center { position: relative; flex-direction: row; width: min(1024px, 94vw); height: min(80vh, 680px); align-items: stretch; }
/* header 曾是 close 的定位锚(position:relative),左导航版式下 header=148px 左列,关闭钮被钉在左列右上角悬在"通用"旁;改锚到整个弹窗,落 dialog 真右上角(主流位置) */
.modal--settings-center .modal__header { position: static; flex-direction: column; align-items: stretch; width: 148px; flex-shrink: 0; padding: 20px 0 0; height: auto; }
/* 垂直居中于搜索行(行高33,close高28→top≈2.5):之前 top:12 使钮心比搜索行心低约10px,一高一低 */
.modal--settings-center .modal__close { position: absolute; top: 3px; right: 12px; margin: 0; z-index: 5; }
.setting_tabs .el-tabs__item { height: 40px; line-height: 40px; text-align: left; padding: 0 18px !important; }
.setting_tabs .el-tabs__item:nth-child(2) { padding-left: 18px !important; }
.setting_tabs .el-tabs__item:last-child { padding-right: 18px !important; }
.setting_tabs .el-tabs__nav { padding-left: 6px !important; }
.setting_tabs .el-tabs__nav-wrap::after { display: none !important; }
.setting_tabs .el-tabs__item.is-active::after { left: 0 !important; right: auto !important; top: 9px; bottom: 9px; width: 2px; height: auto; }
.setting_tabs .el-tabs__active-bar { display: none !important; }

/* ==================== 浮窗放弃确认 · 层级终版（2026-09-01 用户定稿） ====================
   三层各归其位、互不重叠：
   L1 问句标题（12px semibold）        L0 右上角钮保留（最小化/✕=取消）
   L2 主行 = 大数字正计时（22px，逐秒向上）+ 放弃/继续按钮（右侧，放弃浅红/继续品牌实心）
   L3 上下文 = 关联任务名（灰色小字）
   原时间/任务/珠/圆环在放弃期间整体退场，由本面板接管（无叠层、无白色底板） */
/* 放弃确认过渡 = 交叉淡化：内容淡出（略延迟，让蒙版先盖住）→ 蒙版淡出时内容已就位，
   消除「蒙版渐隐 + 内容瞬现」的亮度突变（用户实测闪一下）。硬 display 切换禁用 */
.tomato--abandoning .tomato__info,
.tomato--abandoning .tomato__knob {
  opacity: 0;
  pointer-events: none;
  /* 打开方向不 transition：与面板快切同步，避免双重曝光 */
}
.tomato--abandoning .tomato__corner { z-index: var(--z-float-abandon); }
.tomato__info,
.tomato__knob { transition: opacity .18s ease; }
.tf-abandon {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: #fff; /* 纯白定稿(白名单) */
  color: #2b2f33;
  /* 不再重定义 --text-*/--line*/--brand* 全局 token(曾构成第三 token 源,base 改值此处不跟随);
    子元素颜色直接消费定稿字面量,深色分支由 html[data-theme] 专属规则覆盖 */
  border-radius: 14px;
}
.tf-abandon__q { font-size: 13px; font-weight: 600; color: var(--text-1, #2b2f33); line-height: 16px; }
.tf-abandon__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tf-abandon__actions .mini.primary {
  background: var(--brand, #0f9d8f);
  color: #fff;
  border-color: transparent;
}
.tf-abandon__actions .mini.primary:hover { background: var(--brand-dark, #0c8172); }
.tf-abandon__actions .mini.danger {
  background: #fef0f0;
  color: #d9534f;
  border: 1px solid #f5c8c5;
}
.tf-abandon__actions .mini.danger:hover { background: #fde3e3; }

/* ⋮ 菜单内：白噪音选择区（音色 chips 实时切换，全局派发器即时生效） */
.tf-menu__noise { padding-top: 6px; border-top: 1px solid rgba(120, 130, 140, .18); }
.tf-menu__noise-label { font-size: 9px; color: var(--text-3, #9aa0a6); margin-bottom: 4px; }
.tf-menu__noise .tf-menu__item { font-size: 10px; padding: 4px 8px; }
.tf-menu__noise .tf-menu__item--on, .tf-menu__noise .tf-menu__item--on:hover { background: rgba(15, 157, 143, .12); }

/* 放弃面板内容精简后：卡片 86 → 100px 容纳三行 */
/* 放弃面板精简后 86px 原尺寸即可容纳：卡片不再生长（用户实测「空间够就不用变大」） */

/* ==================== 浮窗角钮图标 · mask+currentColor（深浅主题自适应） ====================
   旧版图标=固定灰色背景图：深色卡面上对比度不足（用户实测"三个钮看不到"）。
   mask 用形状 alpha，颜色走 currentColor 跟随主题；作用域限定浮窗角钮，不波及他处同名类。 */
.corner-btn { color: #8a9096; }
html.dark .corner-btn { color: rgba(232, 237, 241, .78); }
.tomato .corner-btn .btn-min,
.tomato .corner-btn .btn-close,
.tomato .corner-btn .btn-dots {
  background: none;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.tomato .corner-btn .btn-min {
  width: 10px;
  height: 10px;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 10%22><rect y=%224%22 width=%2210%22 height=%222%22 rx=%221%22/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 10%22><rect y=%224%22 width=%2210%22 height=%222%22 rx=%221%22/></svg>');
}
.tomato .corner-btn .btn-close {
  width: 10px;
  height: 10px;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 10%22><path d=%22M1 1l8 8M9 1l-8 8%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 fill=%22none%22/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 10%22><path d=%22M1 1l8 8M9 1l-8 8%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 fill=%22none%22/></svg>');
}
.tomato .corner-btn .btn-dots {
  width: 4px;
  height: 12px;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 14%22><circle cx=%222%22 cy=%222%22 r=%221.5%22/><circle cx=%222%22 cy=%227%22 r=%221.5%22/><circle cx=%222%22 cy=%2212%22 r=%221.5%22/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 14%22><circle cx=%222%22 cy=%222%22 r=%221.5%22/><circle cx=%222%22 cy=%227%22 r=%221.5%22/><circle cx=%222%22 cy=%2212%22 r=%221.5%22/></svg>');
}

/* 关联行 ✕ 与文字行高对齐（消除选中/未选中状态下 1~3px 的布局抖动） */
.tomato .tomato__task { height: 14px; }
.tomato .tomato__task-x { width: 12px; height: 12px; }

/* 白噪音面板：与⋮菜单同一套展开语言（2026-09-01 用户定稿「音乐也改成这种」）——
   点♪卡片 86→320px 向上生长，玻璃面板 inset:0 铺满卡片，tf-pop 对称淡出；
   玻璃白/圆角/阴影与 tf-menu 同值（勿用 var(--panel)：暗色下变深灰与玻璃卡不协调） */
.tomato--expand-noise { width: 240px; height: 320px; }
html.widget-preview .tomato--expand-noise { width: 240px; height: 320px; }
.tf-noise {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px 10px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
}
.tf-noise__head { font-size: 12px; font-weight: 600; color: var(--brand-dark, #0c8172); padding: 0 4px 6px; }
.tf-noise__list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.tf-noise__item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border: 0; background: none; text-align: left; cursor: pointer;
  padding: 6px 8px; border-radius: var(--radius-sm, 4px);
  color: var(--text-1, #2b2f33); font-size: 12px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

  flex-shrink: 0; /* 同 tf-menu__item：防任务/条目多时被 flex 压扁 */
}
.tf-noise__item:hover { background: var(--brand-light, #e7f7f7); color: var(--brand-dark, #0c8172); }
.tf-noise__item.on, .tf-noise__item.on:hover { background: var(--brand-light, #e7f7f7); color: var(--brand-dark, #0c8172); font-weight: 600; }
.tf-noise__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tf-noise__tick { flex-shrink: 0; font-style: normal; font-size: 10px; color: var(--brand, #0f9d8f); }

/* 音符角钮（mask+currentColor，随主题） */
.corner-btn .btn-note {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22><path d=%22M4.2 10.2V2.4l6-1.2v7.6%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.3%22 stroke-linejoin=%22round%22/><circle cx=%222.9%22 cy=%2210.2%22 r=%221.7%22/><circle cx=%228.9%22 cy=%228.8%22 r=%221.7%22/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22><path d=%22M4.2 10.2V2.4l6-1.2v7.6%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.3%22 stroke-linejoin=%22round%22/><circle cx=%222.9%22 cy=%2210.2%22 r=%221.7%22/><circle cx=%228.9%22 cy=%228.8%22 r=%221.7%22/></svg>') center / contain no-repeat;
}

/* ==================== 浮窗角钮 · 动效/样式/布局精修（2026-09-01） ====================
   三段时序各管一环：背景 .15s ease / 按钮缩放 .12s / 图标缩放 .18s 弹性曲线；
   悬停 = 图标 0.75→0.88 微放大（呼吸感，不加位移防抖）；按压 = 0.88 回弹；
   键盘焦点环走 outline（不占布局）；禁用态(放弃期间⋮)不出按压。 */
.corner-btn {
  transition: background-color .15s ease, transform .12s ease, opacity .15s ease;
}
.tomato .corner-btn:active { transform: scale(.88); }
.corner-btn:focus-visible { outline: 2px solid var(--brand, #0f9d8f); outline-offset: 1px; }
.tomato .corner-btn i { transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.tomato .corner-btn:hover:not(.corner-btn--off) i { transform: scale(.88); }
.tomato .corner-btn--off:active { transform: none; }
/* 布局：四钮(最小化/关闭/⋮/♪) 15px 方格，gap 2→3px 换呼吸感，容器锚点不变 */
.tomato__corner { gap: 3px; }
html.dark .corner-btn:focus-visible { outline-color: #35c2ae; }

/* ==================== ⋮ 菜单展开 · 动效收尾（2026-09-01） ====================
   入场已有：卡片 86→320px 0.2s 弹性生长 + 内容 tt-fade-in 同步淡入；
   出场补齐：tf-pop 过渡 0.18s 淡出（组件层 transition），不再 v-if 硬切。
   列表滚动条细体化：240px 玻璃卡里默认粗滚动条喧宾夺主。 */
.tf-menu .tf-menu__list { scrollbar-width: thin; scrollbar-color: rgba(120,130,140,.35) transparent; }
.tf-menu .tf-menu__list::-webkit-scrollbar { width: 4px; }
.tf-menu .tf-menu__list::-webkit-scrollbar-thumb { background: rgba(120,130,140,.35); border-radius: 2px; }
.tf-menu .tf-menu__list::-webkit-scrollbar-track { background: transparent; }
html.dark .tf-menu .tf-menu__list { scrollbar-color: rgba(232,237,241,.25) transparent; }
html.dark .tf-menu .tf-menu__list::-webkit-scrollbar-thumb { background: rgba(232,237,241,.25); }

/* ♪ 噪音面板深色与细滚动条：完全对齐 tf-menu 同款（2026-09-01） */
html.dark .tf-noise { background: #22262e; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
html.dark .tf-noise__head { color: #7fd0c7; }
html.dark .tf-noise__item { color: #e8edf1; }
html.dark .tf-noise__item:hover { background: rgba(53,194,174,.15); color: #7fd0c7; }
html.dark .tf-noise__item.on, html.dark .tf-noise__item.on:hover { background: rgba(53,194,174,.18); color: #7fd0c7; }
html.dark .tf-noise__tick { color: #35c2ae; }
.tf-noise .tf-noise__list { scrollbar-width: thin; scrollbar-color: rgba(120,130,140,.35) transparent; }
.tf-noise .tf-noise__list::-webkit-scrollbar { width: 4px; }
.tf-noise .tf-noise__list::-webkit-scrollbar-thumb { background: rgba(120,130,140,.35); border-radius: 2px; }
.tf-noise .tf-noise__list::-webkit-scrollbar-track { background: transparent; }
html.dark .tf-noise .tf-noise__list { scrollbar-color: rgba(232,237,241,.25) transparent; }
html.dark .tf-noise .tf-noise__list::-webkit-scrollbar-thumb { background: rgba(232,237,241,.25); }

/* —— 全局确认框(ElMessageBox)可见性加固(2026-09-02 用户实测:窄/矮窗口下昨日剩余弹窗可能溢出视口,
      遮罩挡全屏却看不见框=整个界面"点不动") ——
   ①任何视口尺寸下盒子都完整落在屏内 ②浅/深主题都保证实底+描边+投影,不可能"隐形" */
.el-overlay-message-box { padding: 12px !important; }
.el-message-box {
  max-width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line, #e7e9ee);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .el-message-box { border-color: var(--line-strong, #3a4150); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
