/* ════════════════════════════════════════════════════════════
   43. 我的电脑(T173):输入框上方的电脑状态条 + 底部选择面板
   只在 body.mac-claude-chat(对话交给电脑上的 Claude)时生效;颜色全走主题变量。
   ════════════════════════════════════════════════════════════ */

/* 回答方式 / 任务模式对这个助手不起作用;附件照常(图片原样交给电脑上的 Claude,文档取文字) */
body.mac-claude-chat #btn-thinking-depth,
body.mac-claude-chat #btn-task-mode-toggle,
body.mac-claude-chat #chat-agent-model { display: none; }
/* 平时靠回答方式按钮把语音/发送推到右边;它藏起来后由附件按钮让出中间空白 */
body.mac-claude-chat .input-row > .upload-btn { margin-right: auto; }

#mac-claude-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  max-width: 840px; margin: 0 auto 6px; padding: 0 12px; box-sizing: border-box;
  font-size: 12.5px; color: var(--text-muted); container-type: inline-size;
}
#mac-claude-bar.hidden { display: none; }
/* 让位顺序(手机放不下全部时):先收起模型名只留思考档位(点开仍显示全名),再省对话长度前的"对话"二字,
   最后才把文件夹名收成图标 */
@container (max-width: 420px) { .mc-model { display: none; } }
@container (max-width: 340px) { .mc-len-k { display: none; } }
.mc-left { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; container-type: inline-size; }
/* 让位:左边放不下 3 个字的文件夹名时只留图标(点开照样能选),帐号与额度优先 */
@container (max-width: 96px) { .mc-left .mc-name { display: none; } }
.mc-right { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); flex-shrink: 0; }
.mc-dot.is-off { background: var(--text-dim); }
.mc-warn { color: var(--warning-color); }
.mc-dim { color: var(--text-dim); }
.mc-sep { margin: 0 4px; color: var(--text-dim); }
.mc-chip {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%;
  height: 28px; padding: 0 8px; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--text-muted); font: inherit; white-space: nowrap;
}
.mc-chip { cursor: pointer; }
.mc-chip:hover { background: var(--bg-hover); color: var(--text-main); }
.mc-chip svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mc-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mc-chev { width: 12px !important; height: 12px !important; color: var(--text-dim); }
.mc-btn {
  height: 28px; padding: 0 12px; border: 1px solid var(--border-light); border-radius: var(--radius-full);
  background: transparent; color: var(--text-main); font: inherit; cursor: pointer;
}
.mc-hot { color: var(--warning-color); font-variant-numeric: tabular-nums; }
/* 对话长度:到提醒线才出现,排在帐号名前(长度、帐号、档位都关乎额度) */
.mc-len { flex-shrink: 0; padding: 0 7px; color: var(--warning-color); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 输入框上方的提示(额度用完 / 长对话再发会整段重写):与输入框同一套磨砂卡片,
   输入区的渐变底只盖到下半截,不垫底的话几行字会压在后面的对话上 */
#mac-claude-notice {
  max-width: 840px; margin: 0 auto 8px; padding: 12px 14px; box-sizing: border-box; border-radius: 18px;
  background: var(--chrome-glass-strong); -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
  box-shadow: var(--chrome-edge), var(--chrome-shadow);
  font-size: 14px; line-height: 1.55; color: var(--text-main);
}
#mac-claude-notice.hidden { display: none; }
.mc-notice-act { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.mc-notice-act small { font-size: 12px; color: var(--text-dim); }
.mc-why { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.mc-x {
  float: right; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px 0 8px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-dim); cursor: pointer;
}
.mc-x:hover { background: var(--bg-hover); color: var(--text-main); }
.mc-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mc-go {
  height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-full);
  background: var(--bg-cta-primary); color: var(--text-on-color); font: inherit; font-weight: 600; cursor: pointer;
}
.mc-go:disabled { opacity: .6; cursor: default; }
.mc-key { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.mc-key code {
  padding: 8px 10px; border-radius: 10px; background: var(--bg-hover); color: var(--text-main);
  font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.mc-row { display: flex; gap: 8px; }

/* 底部选择面板(手机从底部升起;PC 居中偏下) */
.mc-sheet-wrap { position: fixed; inset: 0; z-index: 1000; }
.mc-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--shadow-overlay) 70%, transparent); }
.mc-sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100%); max-height: 70vh; box-sizing: border-box; overflow-y: auto;
  padding: 18px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--bg-surface); box-shadow: 0 -8px 28px color-mix(in srgb, var(--shadow-overlay) 50%, transparent);
}
.mc-sheet-title { margin: 0 10px 4px; font-size: 15px; font-weight: 600; color: var(--text-main); }
.mc-sheet-sub { margin: 0 10px 10px; font-size: 12.5px; line-height: 1.5; }
.mc-pad { padding: 14px 10px; font-size: 13px; }
.mc-list { display: flex; flex-direction: column; }
.mc-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text-main);
  font: inherit; text-align: left; cursor: pointer;
}
.mc-item:hover { background: var(--bg-hover); }
.mc-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-item-t > span { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-item-t small { font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
/* 通道列表里的额度:窗口名 / 已用 / 几点重置 三列对齐 */
.mc-item-top { align-items: flex-start; }
.mc-item-top .mc-check { margin-top: 2px; }
.mc-item-t > .mc-q { display: grid; overflow: visible; grid-template-columns: 3.4em 5.6em 1fr; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mc-check { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--brand-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
