/* =====================================================================
 * MCP 工具箱（mcp-toolbox.css）· 独立样式
 * ---------------------------------------------------------------------
 * - 前缀：mcpt-；结构见 mcp-toolbox.html；逻辑见 mcp-toolbox.js。
 * - 视觉风格：韩式极简（Korean Minimal）
 *     温暖白 #faf9f7 主背景 / 石板蓝 #3d4a5c 主文本 /
 *     腮红粉 #d4a5a5、灰绿 #a8c5b8 点缀 / 极细边框 / 大圆角 / 柔和阴影 / 轻字重。
 * - 层级：与真心话大冒险同段（高于游乐场 hub 100140）。
 * ===================================================================== */

/* ============ 整体 overlay ============ */
.mcpt-overlay {
    --mcpt-paper: #faf9f7;
    --mcpt-ink: #3d4a5c;
    --mcpt-blush: #d4a5a5;
    --mcpt-sage: #a8c5b8;
    --mcpt-line: rgba(61, 74, 92, 0.1);
    --mcpt-line-soft: rgba(61, 74, 92, 0.06);
    --mcpt-shadow-sm: 0 2px 6px rgba(61, 74, 92, 0.05);
    --mcpt-shadow-md: 0 4px 12px rgba(61, 74, 92, 0.06);
    --mcpt-shadow-lg: 0 8px 24px rgba(61, 74, 92, 0.08);
    position: absolute;
    inset: 0;
    z-index: 100195;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, visibility 0.26s ease;
    background: var(--mcpt-paper);
    color: var(--mcpt-ink);
    font-family: Inter, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.mcpt-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 从游乐场瞬时切入/退出：关掉过渡，避免与 hub 淡入淡出叠帧闪屏 */
.mcpt-overlay.mcpt-overlay--instant {
    transition: none !important;
}

.mcpt-overlay * {
    box-sizing: border-box;
}

/* author 样式里的 display:flex 会覆盖浏览器默认 [hidden]，必须显式兜底。 */
.mcpt-overlay [hidden] {
    display: none !important;
}

.mcpt-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding:
        calc(14px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)))
        max(18px, var(--safe-area-inset-right, env(safe-area-inset-right, 0px)))
        calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)))
        max(18px, var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
    overflow: hidden;
}

/* ============ 顶部 ============ */
.mcpt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0 14px;
    flex-shrink: 0;
}

.mcpt-icon-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mcpt-line);
    border-radius: 999px;
    background: var(--mcpt-paper);
    color: var(--mcpt-ink);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.mcpt-icon-btn svg {
    width: 18px;
    height: 18px;
}

.mcpt-icon-btn:hover {
    box-shadow: var(--mcpt-shadow-sm);
    opacity: 0.8;
}

.mcpt-title-wrap {
    flex: 1;
    min-width: 0;
}

.mcpt-title {
    margin: 0;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--mcpt-ink);
    line-height: 1.25;
}

.mcpt-subtitle {
    margin: 3px 0 0;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.55);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    flex-shrink: 0;
    border: 1px solid var(--mcpt-ink);
    border-radius: 999px;
    background: var(--mcpt-ink);
    color: var(--mcpt-paper);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.mcpt-add-btn svg {
    width: 14px;
    height: 14px;
}

.mcpt-add-btn:hover {
    box-shadow: var(--mcpt-shadow-sm);
    opacity: 0.85;
}

/* ============ 页签 ============ */
.mcpt-tabs {
    display: flex;
    gap: 8px;
    padding: 2px;
    flex-shrink: 0;
    border: 1px solid var(--mcpt-line-soft);
    border-radius: 999px;
    background: rgba(61, 74, 92, 0.03);
}

.mcpt-tab {
    flex: 1;
    padding: 9px 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(61, 74, 92, 0.5);
    font-size: 13.5px;
    font-weight: 300;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.mcpt-tab.is-active {
    background: var(--mcpt-paper);
    color: var(--mcpt-ink);
    border-color: var(--mcpt-line);
    box-shadow: var(--mcpt-shadow-sm);
}

/* ============ 主体 ============ */
.mcpt-body {
    flex: 1;
    min-height: 0;
    margin-top: 14px;
    overflow: hidden;
}

.mcpt-panel {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox：隐形滚动条，仍可滑动 */
    -ms-overflow-style: none; /* IE / 旧 Edge */
    padding: 2px 2px 24px;
}

/* 工具箱内所有可滚动区域：滚动条隐形，保留触摸/滚轮滚动 */
.mcpt-panel::-webkit-scrollbar,
.mcpt-form::-webkit-scrollbar,
.mcpt-assign-list::-webkit-scrollbar,
.mcpt-detail-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.mcpt-panel[hidden] {
    display: none;
}

.mcpt-section-label {
    margin: 14px 2px 10px;
    font-size: 11.5px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: rgba(61, 74, 92, 0.45);
}

.mcpt-section-label:first-child {
    margin-top: 2px;
}

/* ============ 工具卡片 ============ */
.mcpt-tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcpt-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid var(--mcpt-line);
    border-radius: 18px;
    background: var(--mcpt-paper);
    box-shadow: var(--mcpt-shadow-sm);
    transition: all 0.3s ease-in-out;
}

.mcpt-tool-card:hover {
    box-shadow: var(--mcpt-shadow-md);
    border-color: rgba(61, 74, 92, 0.2);
}

.mcpt-tool-card.is-off {
    opacity: 0.6;
}

.mcpt-tool-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 14px;
    background: rgba(168, 197, 184, 0.16);
    border: 1px solid rgba(168, 197, 184, 0.3);
}

.mcpt-tool-card--custom .mcpt-tool-icon {
    background: rgba(212, 165, 165, 0.14);
    border-color: rgba(212, 165, 165, 0.3);
}

.mcpt-tool-main {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.mcpt-tool-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.mcpt-tool-name {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--mcpt-ink);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.08em;
    border-radius: 999px;
    border: 1px solid rgba(168, 197, 184, 0.45);
    background: rgba(168, 197, 184, 0.12);
    color: #6d8a7d;
}

.mcpt-badge--custom {
    border-color: rgba(212, 165, 165, 0.45);
    background: rgba(212, 165, 165, 0.12);
    color: #a97f7f;
}

.mcpt-badge--sample {
    border-color: var(--mcpt-line);
    background: rgba(61, 74, 92, 0.04);
    color: rgba(61, 74, 92, 0.5);
}

.mcpt-badge--warn {
    border-color: rgba(212, 165, 165, 0.55);
    background: rgba(212, 165, 165, 0.16);
    color: #a97070;
}

.mcpt-tool-desc {
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-tool-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 小圆按钮：编辑 / 删除 */
.mcpt-mini-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mcpt-line);
    border-radius: 999px;
    background: transparent;
    color: rgba(61, 74, 92, 0.6);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.mcpt-mini-btn svg {
    width: 14px;
    height: 14px;
}

.mcpt-mini-btn:hover {
    box-shadow: var(--mcpt-shadow-sm);
    opacity: 0.8;
}

.mcpt-mini-btn--danger {
    color: #b98a8a;
    border-color: rgba(212, 165, 165, 0.4);
}

/* 开关（启用/停用） */
.mcpt-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    border: 1px solid var(--mcpt-line);
    border-radius: 999px;
    background: rgba(61, 74, 92, 0.06);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.mcpt-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--mcpt-shadow-sm);
    transition: transform 0.3s ease-in-out;
}

.mcpt-switch.is-on {
    background: var(--mcpt-sage);
    border-color: var(--mcpt-sage);
}

.mcpt-switch.is-on::after {
    transform: translateX(18px);
}

/* ============ 好友列表 ============ */
.mcpt-friends-tip {
    margin: 2px 2px 12px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.5);
    letter-spacing: 0.04em;
}

.mcpt-friend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcpt-friend-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mcpt-line);
    border-radius: 18px;
    background: var(--mcpt-paper);
    box-shadow: var(--mcpt-shadow-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease-in-out;
}

.mcpt-friend-card:hover {
    box-shadow: var(--mcpt-shadow-md);
    border-color: rgba(61, 74, 92, 0.2);
}

.mcpt-friend-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(212, 165, 165, 0.14);
    border: 1px solid var(--mcpt-line-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #a97f7f;
}

.mcpt-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcpt-friend-main {
    flex: 1;
    min-width: 0;
}

.mcpt-friend-name {
    font-size: 14.5px;
    font-weight: 400;
    color: var(--mcpt-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-friend-tools {
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-friend-count {
    flex-shrink: 0;
    min-width: 26px;
    padding: 3px 9px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 300;
    border-radius: 999px;
    border: 1px solid rgba(168, 197, 184, 0.45);
    background: rgba(168, 197, 184, 0.12);
    color: #6d8a7d;
}

.mcpt-friend-count.is-zero {
    border-color: var(--mcpt-line);
    background: transparent;
    color: rgba(61, 74, 92, 0.35);
}

/* ============ 空状态 ============ */
.mcpt-empty {
    padding: 26px 12px;
    text-align: center;
    border: 1px dashed var(--mcpt-line);
    border-radius: 18px;
}

.mcpt-empty--sheet {
    margin: 4px 0 8px;
    padding: 20px 12px;
}

.mcpt-empty-icon {
    font-size: 20px;
    color: rgba(61, 74, 92, 0.3);
    margin-bottom: 8px;
}

.mcpt-empty-text {
    font-size: 13.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.65);
    letter-spacing: 0.06em;
}

.mcpt-empty-hint {
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.4);
}

/* ============ 底部弹层（sheet） ============ */
.mcpt-sheet-mask {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(61, 74, 92, 0.18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.mcpt-sheet-mask.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mcpt-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    max-height: 86%;
    display: flex;
    flex-direction: column;
    padding:
        10px
        max(20px, var(--safe-area-inset-right, env(safe-area-inset-right, 0px)))
        calc(16px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)))
        max(20px, var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
    border: 1px solid var(--mcpt-line);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    background: var(--mcpt-paper);
    box-shadow: var(--mcpt-shadow-lg);
    transform: translateY(104%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.32, 1), visibility 0.32s ease;
    overscroll-behavior: contain;
}

.mcpt-sheet.is-visible {
    transform: translateY(0);
    visibility: visible;
}

/* 软键盘出现时由 overlay-keyboard-compat-guard 抬高面板；
   同步收紧高度，防止 iPhone Safari / Via 的小可视区把面板顶出屏幕。 */
.mcpt-sheet.lovemi-overlay-kb-active {
    max-height: calc(100% - var(--lovemi-overlay-kb-inset, 0px) - 12px);
}

.mcpt-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(61, 74, 92, 0.14);
    flex-shrink: 0;
}

.mcpt-sheet-title {
    margin: 0 0 4px;
    font-size: 16.5px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--mcpt-ink);
    text-align: center;
    flex-shrink: 0;
}

.mcpt-assign-sub {
    margin: 0 0 12px;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.5);
    text-align: center;
    flex-shrink: 0;
}

/* ---- 表单 ---- */
.mcpt-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
}

.mcpt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mcpt-field-label {
    font-size: 11.5px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(61, 74, 92, 0.6);
}

.mcpt-field-label em {
    font-style: normal;
    color: var(--mcpt-blush);
}

.mcpt-field input,
.mcpt-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(61, 74, 92, 0.15);
    border-radius: 14px;
    background: var(--mcpt-paper);
    color: var(--mcpt-ink);
    font-size: 13.5px;
    font-weight: 300;
    letter-spacing: 0.03em;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease-in-out;
    resize: none;
}

.mcpt-field input::placeholder,
.mcpt-field textarea::placeholder {
    color: rgba(61, 74, 92, 0.3);
}

.mcpt-field input:focus,
.mcpt-field textarea:focus {
    border-color: rgba(212, 165, 165, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.12);
}

.mcpt-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(168, 197, 184, 0.42);
    border-radius: 14px;
    background: rgba(168, 197, 184, 0.08);
    color: rgba(61, 74, 92, 0.72);
    font-size: 11.5px;
    font-weight: 300;
    line-height: 1.55;
    cursor: pointer;
}

.mcpt-consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--mcpt-sage);
}

/* ---- 内置工具配置指引 ---- */
.mcpt-config-guide {
    padding: 11px 14px;
    border: 1px solid rgba(168, 197, 184, 0.4);
    border-radius: 14px;
    background: rgba(168, 197, 184, 0.08);
}

.mcpt-config-guide-text {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(61, 74, 92, 0.75);
}

.mcpt-config-guide-link {
    display: inline-block;
    margin-top: 7px;
    margin-right: 14px;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #6d8a7d;
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 138, 125, 0.4);
    padding-bottom: 1px;
}

/* 「恢复官方默认地址」按钮沿用 guide-link 视觉，但需抹掉 button 默认外观 */
button.mcpt-config-guide-link {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 0 0 1px;
    font-family: inherit;
    cursor: pointer;
}

.mcpt-field-hint {
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(61, 74, 92, 0.42);
}

.mcpt-detail-link {
    color: #6d8a7d;
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 138, 125, 0.35);
    word-break: break-all;
}

.mcpt-form-status {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    border: 1px solid rgba(168, 197, 184, 0.4);
    background: rgba(168, 197, 184, 0.1);
    color: #5f7f70;
    word-break: break-all;
}

.mcpt-form-status.is-error {
    border-color: rgba(212, 165, 165, 0.5);
    background: rgba(212, 165, 165, 0.1);
    color: #a97070;
}

.mcpt-form-status.is-loading {
    border-color: var(--mcpt-line);
    background: rgba(61, 74, 92, 0.03);
    color: rgba(61, 74, 92, 0.6);
}

/* ---- sheet 按钮行 ---- */
.mcpt-sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-shrink: 0;
}

.mcpt-btn {
    flex: 1;
    padding: 11px 0;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 300;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

.mcpt-btn--primary {
    border: 1px solid var(--mcpt-ink);
    background: var(--mcpt-ink);
    color: var(--mcpt-paper);
}

.mcpt-btn--ghost {
    border: 1px solid rgba(61, 74, 92, 0.2);
    background: transparent;
    color: var(--mcpt-ink);
}

.mcpt-btn:hover {
    box-shadow: var(--mcpt-shadow-sm);
    opacity: 0.82;
}

.mcpt-btn:disabled {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}

/* ---- 好友分配勾选列表 ---- */
.mcpt-assign-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
    padding: 2px;
}

.mcpt-agentmail-assign {
    flex-shrink: 0;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(168, 197, 184, 0.48);
    border-radius: 16px;
    background: rgba(168, 197, 184, 0.07);
}

.mcpt-agentmail-assign-title {
    color: var(--mcpt-ink);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.mcpt-agentmail-assign-recipient {
    margin: 4px 0 10px;
    color: rgba(61, 74, 92, 0.52);
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.45;
    word-break: break-all;
}

.mcpt-agentmail-load {
    width: 100%;
    margin-top: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(61, 74, 92, 0.18);
    border-radius: 999px;
    background: var(--mcpt-paper);
    color: var(--mcpt-ink);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 300;
    cursor: pointer;
}

.mcpt-agentmail-load:disabled {
    opacity: 0.48;
    cursor: default;
}

.mcpt-agentmail-status {
    margin-top: 8px;
    color: #5f7f70;
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.45;
    word-break: break-all;
}

.mcpt-agentmail-status.is-error {
    color: #a97070;
}

.mcpt-assign-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--mcpt-line);
    border-radius: 16px;
    background: var(--mcpt-paper);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

.mcpt-assign-item.is-checked {
    border-color: rgba(168, 197, 184, 0.6);
    background: rgba(168, 197, 184, 0.08);
}

.mcpt-assign-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(61, 74, 92, 0.25);
    border-radius: 999px;
    color: transparent;
    transition: all 0.3s ease-in-out;
}

.mcpt-assign-check svg {
    width: 11px;
    height: 11px;
}

.mcpt-assign-item.is-checked .mcpt-assign-check {
    border-color: var(--mcpt-sage);
    background: var(--mcpt-sage);
    color: #fff;
}

.mcpt-assign-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.mcpt-assign-main {
    flex: 1;
    min-width: 0;
}

.mcpt-assign-name {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--mcpt-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcpt-assign-desc {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 300;
    color: rgba(61, 74, 92, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- 工具详情 ---- */
.mcpt-detail-body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcpt-detail-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.mcpt-detail-row {
    padding: 10px 14px;
    border: 1px solid var(--mcpt-line-soft);
    border-radius: 14px;
    background: rgba(61, 74, 92, 0.02);
}

.mcpt-detail-label {
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: rgba(61, 74, 92, 0.45);
    margin-bottom: 4px;
}

.mcpt-detail-value {
    font-size: 13px;
    font-weight: 300;
    color: var(--mcpt-ink);
    line-height: 1.55;
    word-break: break-all;
}

/* ============ 深色外观模式：保持韩式极简的浅调，仅轻微降亮 ============ */
html[data-appearance="dark"] .mcpt-overlay {
    --mcpt-paper: #f3f1ee;
}
