/* ============================================================
   资料工作台 - 暖米色极简风格（仿个人工作台）
   ============================================================ */
:root {
    /* 主色调 */
    --wb-accent: #a35a3b;          /* 陶土棕 */
    --wb-accent-soft: #c0896d;
    --wb-accent-rgb: 163, 90, 59;
    /* 背景 */
    --wb-bg: #f4efe6;
    --wb-bg-deco: #e9e1d4;
    --wb-card: #fbf8f2;
    --wb-card-hover: #fffdf9;
    --wb-tile: #f2ece2;
    /* 线条 */
    --wb-border: #e9e2d5;
    --wb-border-strong: #ddd4c4;
    --wb-line: #f0ebe1;
    /* 文字 */
    --wb-text: #33302b;
    --wb-text-2: #6f685e;
    --wb-muted: #a89f92;
    /* 状态色 */
    --wb-green: #71895a;
    --wb-amber: #b06a42;
    --wb-gray-dot: #b6ada0;
    /* 黑色按钮 */
    --wb-dark: #2e2c28;
    --wb-dark-hover: #000000;

    --wb-radius: 16px;
    --wb-radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--wb-text);
    background-color: var(--wb-bg);
    /* 极淡的暖色光晕，营造静谧纸质氛围 */
    background-image:
        radial-gradient(ellipse 60% 45% at 88% 108%, rgba(163, 90, 59, .07), transparent 70%),
        radial-gradient(ellipse 45% 40% at 8% 102%, rgba(113, 137, 90, .05), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d8cfbf; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #c4b9a5; }

/* ============ 页面骨架 ============ */
.wb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px 20px;
}

/* ============ 顶部标题 ============ */
.wb-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px;
}
.wb-head h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--wb-text);
}
.wb-head-date {
    margin-top: 5px;
    font-size: 12px;
    color: var(--wb-muted);
    letter-spacing: .5px;
}
.wb-updated {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--wb-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ============ 统计卡片 ============ */
.wb-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.wb-stat {
    background: var(--wb-card);
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    padding: 18px 20px 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wb-stat[data-stat-jump] { cursor: pointer; }
.wb-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(120, 95, 65, .09);
    border-color: var(--wb-border-strong);
}
.wb-stat-label {
    font-size: 11px;
    color: var(--wb-muted);
    letter-spacing: 2px;
    font-weight: 500;
}
.wb-stat-num {
    margin: 10px 0 12px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.wb-stat-num > span {
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 38px;
    color: #26241f;
}
.wb-stat-num em {
    font-style: normal;
    font-size: 12px;
    color: var(--wb-muted);
}
.wb-stat-accent .wb-stat-num > span { color: var(--wb-accent); }

.wb-stat-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    color: #8c8478;
    background: #f0ece3;
    letter-spacing: .5px;
}
.wb-tag-accent {
    color: var(--wb-accent);
    background: #f4e5db;
}

/* ============ 快捷操作卡 ============ */
.wb-quick-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.wb-quick {
    background: var(--wb-card);
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.wb-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(120, 95, 65, .09);
    border-color: var(--wb-border-strong);
    background: var(--wb-card-hover);
}
.wb-quick:active { transform: translateY(0); }
.wb-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wb-tile);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wb-accent);
    transition: background .2s ease;
}
.wb-quick:hover .wb-quick-icon { background: #f5e4d9; }
.wb-quick-icon svg { width: 19px; height: 19px; }
.wb-quick-text {
    font-size: 12px;
    color: var(--wb-text-2);
    letter-spacing: 1px;
}

/* ============ 报告面板 ============ */
.wb-panel {
    background: var(--wb-card);
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    padding: 18px 20px 10px;
}
.wb-panel-title {
    margin: 2px 2px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wb-text);
    letter-spacing: .5px;
}

/* ---- 工具栏：页签 + 筛选 + 新建按钮 ---- */
.wb-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.wb-seg {
    display: inline-flex;
    border: 1px solid var(--wb-border-strong);
    border-radius: var(--wb-radius-sm);
    padding: 2px;
    background: rgba(255, 255, 255, .35);
    flex-shrink: 0;
}
.wb-seg button {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    color: var(--wb-text-2);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .18s ease;
    letter-spacing: .5px;
}
.wb-seg button svg { width: 13px; height: 13px; }
.wb-seg button:hover { color: var(--wb-text); }
.wb-seg button.active {
    background: #fff;
    color: var(--wb-text);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(110, 90, 60, .12);
}

.wb-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--wb-border-strong);
    background-color: rgba(255, 255, 255, .35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a89f92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border-radius: var(--wb-radius-sm);
    padding: 8px 34px 8px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--wb-text-2);
    cursor: pointer;
    letter-spacing: .5px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-select:hover { border-color: #c9bfa9; }
.wb-select:focus {
    border-color: var(--wb-accent-soft);
    box-shadow: 0 0 0 3px rgba(var(--wb-accent-rgb), .12);
}

.wb-search {
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 230px;
}
.wb-search input {
    width: 100%;
    border: 1px solid var(--wb-border-strong);
    background: rgba(255, 255, 255, .35);
    border-radius: var(--wb-radius-sm);
    padding: 8px 14px 8px 34px;
    font-size: 13px;
    font-family: inherit;
    color: var(--wb-text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-search input::placeholder { color: var(--wb-muted); }
.wb-search input:focus {
    border-color: var(--wb-accent-soft);
    box-shadow: 0 0 0 3px rgba(var(--wb-accent-rgb), .12);
}
.wb-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--wb-muted);
}

.wb-toolbar-spacer { flex: 1; }

/* 黑色新建按钮 */
.wb-btn-dark {
    border: 0;
    background: var(--wb-dark);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 9px 18px;
    border-radius: var(--wb-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .18s ease, transform .15s ease;
    flex-shrink: 0;
}
.wb-btn-dark svg { width: 14px; height: 14px; }
.wb-btn-dark:hover { background: var(--wb-dark-hover); }
.wb-btn-dark:active { transform: scale(.97); }

/* ============ 表格 ============ */
.wb-table-wrap { width: 100%; overflow-x: auto; }
.wb-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.wb-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    color: var(--wb-muted);
    letter-spacing: 1px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--wb-line);
    white-space: nowrap;
}
.wb-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--wb-line);
    vertical-align: middle;
    font-size: 13px;
    white-space: nowrap;            /* 列表单元格一律单行，避免文字折成两行 */
}
/* 需要截断的长文本列（如医院名称）：加 class="ellip"，超宽显示省略号；悬停/聚焦经 title 显示全文 */
.wb-table td.ellip {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-table td.ellip:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(74, 124, 201, .35);
    border-radius: 4px;
}
/* 单击复制的数据列（医院名 / 联系人 / 手机号等）：加 class="copy-cell" + data-copy + onclick */
.wb-table td.copy-cell { cursor: copy; }
.wb-table td.copy-cell:hover { background: rgba(74, 124, 201, .07); }
.wb-table td.copy-cell:active { background: rgba(74, 124, 201, .16); }
.wb-table tbody tr { transition: background .15s ease; }
.wb-table tbody tr:hover { background: rgba(163, 90, 59, .035); }
.wb-table tbody tr:last-child td { border-bottom: 0; }

.wb-file-name {
    font-weight: 600;
    color: var(--wb-text);
    cursor: pointer;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}
.wb-file-name:hover { color: var(--wb-accent); }
.wb-file-desc {
    margin-top: 4px;
    font-size: 12px;
    color: var(--wb-muted);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类胶囊（仿优先级标签） */
.wb-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .5px;
    white-space: nowrap;
    background: #f0ece3;
    color: #8c8478;
}
.wb-pill-1 { background: #f4e5db; color: #a35a3b; }  /* 陶土 */
.wb-pill-2 { background: #f6eada; color: #b07d4f; }  /* 暖棕 */
.wb-pill-3 { background: #eef0e3; color: #71895a; }  /* 橄榄绿 */
.wb-pill-4 { background: #f3ece7; color: #a0715f; }  /* 灰玫 */
.wb-pill-5 { background: #eef0f1; color: #7d8790; }  /* 冷灰 */

.wb-ext {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--wb-muted);
    border: 1px solid var(--wb-border-strong);
    border-radius: 5px;
    padding: 1px 5px;
    margin-right: 6px;
    vertical-align: 1px;
}

/* 状态圆点 */
.wb-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--wb-text-2);
    white-space: nowrap;
}
.wb-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wb-gray-dot);
    flex-shrink: 0;
}
.wb-status.is-published { color: var(--wb-text); }
.wb-status.is-published i { background: var(--wb-green); }
.wb-status.is-week i {
    background: var(--wb-amber);
    box-shadow: 0 0 0 3px rgba(176, 106, 66, .15);
}

.wb-date-cell {
    font-size: 13px;
    color: var(--wb-text-2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.wb-date-cell.is-empty { color: #c3bbad; }

.wb-cnt {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-variant-numeric: tabular-nums;
}
.wb-cnt b {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--wb-text);
}
.wb-cnt span { font-size: 11px; color: var(--wb-muted); }
.wb-cnt.is-zero b { color: #c3bbad; }

/* 行内操作按钮 */
.wb-row-acts { display: flex; gap: 6px; justify-content: flex-end; }
.wb-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: #a89f92;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.wb-icon-btn svg { width: 16px; height: 16px; }
.wb-icon-btn:hover {
    background: var(--wb-tile);
    color: var(--wb-text);
    border-color: var(--wb-border);
}
.wb-icon-btn.is-danger:hover {
    background: #f7e7e1;
    color: #c0503f;
    border-color: #eed3c9;
}

/* ============ 空状态 / 加载 ============ */
.wb-loading, .wb-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--wb-muted);
    font-size: 13px;
}
.wb-empty-icon {
    font-size: 34px;
    opacity: .35;
    margin-bottom: 10px;
}
.wb-empty-sub { font-size: 12px; margin-top: 6px; opacity: .8; }
.wb-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid var(--wb-border-strong);
    border-top-color: var(--wb-accent);
    border-radius: 50%;
    animation: wb-spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 7px;
}
@keyframes wb-spin { to { transform: rotate(360deg); } }

/* ============ 分类管理 ============ */
.wb-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding-bottom: 16px;
}
.wb-cat-card {
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, .4);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-cat-card:hover {
    border-color: var(--wb-border-strong);
    box-shadow: 0 6px 18px rgba(120, 95, 65, .07);
}
.wb-cat-folder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wb-tile);
    color: var(--wb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wb-cat-folder svg { width: 20px; height: 20px; }
.wb-cat-info { flex: 1; min-width: 0; }
.wb-cat-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--wb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-cat-meta { font-size: 12px; color: var(--wb-muted); margin-top: 3px; }
.wb-cat-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* ============ 通用按钮（弹窗内） ============ */
.wb-btn {
    border: 1px solid var(--wb-border-strong);
    background: #fff;
    color: var(--wb-text-2);
    font-family: inherit;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s ease;
    letter-spacing: .5px;
}
.wb-btn:hover { border-color: #c9bfa9; color: var(--wb-text); }
.wb-btn-primary {
    background: var(--wb-dark);
    border-color: var(--wb-dark);
    color: #fff;
    font-weight: 600;
}
.wb-btn-primary:hover { background: var(--wb-dark-hover); border-color: var(--wb-dark-hover); color: #fff; }
.wb-btn:disabled { opacity: .45; cursor: not-allowed; }
.wb-btn-sm { padding: 4px 10px; font-size: 11px; border-radius: 8px; }

/* ============ 表单 ============ */
.wb-label {
    display: block;
    font-size: 11px;
    color: var(--wb-text-2);
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 500;
}
.wb-input, .wb-textarea {
    width: 100%;
    border: 1px solid var(--wb-border-strong);
    background: #fff;
    border-radius: 9px;
    padding: 7px 11px;
    font-size: 12px;
    font-family: inherit;
    color: var(--wb-text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-input::placeholder, .wb-textarea::placeholder { color: #bfb7a9; }
.wb-input:focus, .wb-textarea:focus {
    border-color: var(--wb-accent-soft);
    box-shadow: 0 0 0 3px rgba(var(--wb-accent-rgb), .12);
}
.wb-textarea { resize: vertical; min-height: 56px; }
.wb-form-row { margin-bottom: 12px; }
.wb-form-row:last-child { margin-bottom: 0; }
.wb-form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-form-hint { font-size: 11px; color: var(--wb-muted); margin-top: 5px; line-height: 1.5; }

/* 多值标签输入 */
.wb-tags {
    border: 1px solid var(--wb-border-strong);
    border-radius: 9px;
    padding: 7px 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    min-height: 40px;
    align-items: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-tags:focus-within {
    border-color: var(--wb-accent-soft);
    box-shadow: 0 0 0 3px rgba(var(--wb-accent-rgb), .12);
}
.wb-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4e5db;
    color: var(--wb-accent);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
}
.wb-tag button {
    border: 0; background: transparent; cursor: pointer;
    color: var(--wb-accent); font-size: 14px; line-height: 1; padding: 0;
    opacity: .65;
}
.wb-tag button:hover { opacity: 1; }
.wb-tags input {
    border: 0; outline: none; flex: 1; min-width: 90px;
    font-size: 13px; background: transparent; color: var(--wb-text);
    font-family: inherit; padding: 3px;
}

/* ============ 弹窗 ============ */
.wb-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(52, 44, 36, .42);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 22px;
    animation: wb-fade .2s ease;
}
.wb-modal {
    background: var(--wb-card);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 70px rgba(60, 45, 30, .25);
    animation: wb-pop .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes wb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wb-pop {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.wb-modal-header {
    padding: 20px 24px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wb-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
}
.wb-modal-close {
    background: var(--wb-tile);
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    color: var(--wb-text-2);
    transition: background .15s ease, color .15s ease;
}
.wb-modal-close:hover { background: #e7dfd1; color: var(--wb-text); }
.wb-modal-body { padding: 8px 24px 20px; overflow-y: auto; flex: 1; }
.wb-modal-footer {
    padding: 14px 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 拖拽上传区 */
.wb-dropzone {
    border: 1.5px dashed var(--wb-border-strong);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--wb-muted);
    cursor: pointer;
    transition: all .18s ease;
    background: rgba(255, 255, 255, .4);
}
.wb-dropzone:hover, .wb-dropzone.is-dragover {
    border-color: var(--wb-accent-soft);
    background: rgba(var(--wb-accent-rgb), .04);
    color: var(--wb-accent);
}
.wb-dropzone-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 9px;
    border-radius: 12px;
    background: var(--wb-tile);
    color: var(--wb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wb-dropzone-icon svg { width: 22px; height: 22px; }
.wb-progress {
    height: 6px;
    background: var(--wb-tile);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}
.wb-progress-bar { height: 100%; background: var(--wb-accent); width: 0; transition: width .15s; border-radius: 3px; }

/* 记录中的人名/日期小标签 */
.wb-mini-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: #f0ece3;
    color: #8c8478;
    margin: 0 5px 5px 0;
    white-space: nowrap;
}
.wb-mini-tag.is-date { background: #f6eada; color: #b07d4f; }
.wb-mini-tag.is-user { background: #f4e5db; color: #a35a3b; }
.wb-mini-tag.is-type { background: #e7ecf6; color: #4a6a9c; }

/* 记录列表长文本（备注 / 推广文章）：默认单行省略，点击展开完整内容，避免行高变形 */
.wb-cell-clip {
    display: block;
    font-size: 12px;
    color: var(--wb-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: pointer;
}
.wb-cell-clip.is-open {
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    text-overflow: clip;
}

/* 使用登记：类型多选 chip */
.wb-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wb-type-chip {
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid var(--wb-border, #ddd5c7);
    background: #fff;
    color: var(--wb-text-2, #6f6a5f);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}
.wb-type-chip:hover { border-color: #9db3d6; color: #3a5a8a; }
.wb-type-chip.is-on {
    background: #e7ecf6;
    border-color: #7f9cc6;
    color: #35578a;
    font-weight: 600;
}

/* 使用登记：使用人（员工点选） */
.wb-emp-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-height: 132px;
    overflow-y: auto;
    padding: 9px;
    border: 1px dashed var(--wb-border-strong);
    border-radius: 9px;
    background: var(--wb-card);
    align-content: flex-start;
}
.wb-emp-chip {
    padding: 4px 13px;
    border-radius: 999px;
    border: 1px solid var(--wb-border-strong);
    background: #fff;
    color: var(--wb-text-2);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.6;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}
.wb-emp-chip:hover { border-color: var(--wb-accent-soft); color: var(--wb-accent); }
.wb-emp-chip.is-on {
    background: #f4e5db;
    border-color: var(--wb-accent);
    color: var(--wb-accent);
    font-weight: 600;
}
.wb-emp-chip.is-hidden { display: none; }
.wb-emp-empty {
    font-size: 12px;
    color: var(--wb-muted);
    padding: 3px 2px;
    line-height: 1.6;
}
.wb-tag.is-extra {
    background: #f3f1ec;
    border: 1px dashed #cfc7b8;
    color: var(--wb-text-2);
}

/* ============ Toast ============ */
.wb-toast {
    position: fixed;
    right: 26px;
    bottom: 26px;
    background: var(--wb-dark);
    color: #fff;
    padding: 11px 20px;
    border-radius: 11px;
    font-size: 13px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(50, 40, 25, .25);
    animation: wb-toast-in .28s cubic-bezier(.22, 1, .36, 1);
    letter-spacing: .5px;
}
.wb-toast.is-error { background: #b04a38; }
.wb-toast.is-success::before { content: "✓ "; font-weight: 700; }
@keyframes wb-toast-in {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============ 页脚 ============ */
.wb-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #bdb4a5;
    letter-spacing: 1px;
}
.wb-foot-dot { margin: 0 8px; }
.wb-foot-err { color: #c0503f; margin-left: 12px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
    .wb { padding: 20px 18px; }
}
@media (max-width: 720px) {
    .wb-stat-row, .wb-quick-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
    .wb-head { flex-direction: column; gap: 4px; }
    .wb-updated { margin-top: 0; }
    .wb-panel { padding: 14px 12px 8px; }
    .wb-table th:nth-child(3), .wb-table td:nth-child(3) { display: none; }
}

/* ============ 安装/服务员工模块 ============ */
.is-btn {
    font-size: 11px;
    font-family: inherit;
    border: 1px solid var(--wb-border-strong);
    background: #fff;
    color: var(--wb-text-2);
    padding: 3px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    letter-spacing: .5px;
}
.is-btn:hover { border-color: #c9bfa9; color: var(--wb-text); }
.is-btn.is-active {
    background: var(--wb-dark);
    border-color: var(--wb-dark);
    color: #fff;
}
.is-btn.is-active:hover { background: #000; border-color: #000; }

/* 状态胶囊 */
.is-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}
.is-status.is-pending  { background: #f0ece3; color: #8c8478; }
.is-status.is-success  { background: #e8f0df; color: #5a7a3a; }
.is-status.is-fail     { background: #f7e7e1; color: #a83a2a; }
.is-status.is-no-video { background: #f6eada; color: #b07d4f; }
.is-status.is-agent    { background: #eef0f1; color: #5a7a9a; }
.is-status.is-deferred { background: #f1ecf7; color: #7a5a9a; }
.is-status.is-rework   { background: #fff3e0; color: #e65100; }
.is-status.is-cancelled{ background: #f5f5f5; color: #9e9e9e; text-decoration: line-through; }

/* 安装记录列表 */
.is-inst-card {
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.45);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.is-inst-card:hover {
    border-color: var(--wb-border-strong);
    box-shadow: 0 4px 14px rgba(120,95,65,.07);
}
.is-inst-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.is-inst-client {
    font-weight: 700;
    font-size: 14px;
    color: var(--wb-text);
}
.is-inst-emp {
    font-size: 12px;
    color: var(--wb-muted);
}
.is-inst-body { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.is-inst-row { font-size: 13px; color: var(--wb-text-2); }
.is-inst-row b { font-weight: 600; color: var(--wb-text); }
.is-inst-desc { width: 100%; font-size: 12px; color: var(--wb-muted); margin-top: 4px; }

/* 员工统计卡片 */
.is-emp-stat {
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm);
    padding: 16px;
    background: rgba(255,255,255,.4);
}
.is-emp-stat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wb-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--wb-line);
}
.is-emp-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.is-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 8px;
    background: var(--wb-tile);
}
.is-stat-num {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.is-stat-label {
    font-size: 11px;
    color: var(--wb-muted);
    margin-top: 4px;
}
.is-stat-num.su   { color: #5a7a3a; }
.is-stat-num.fa   { color: #a83a2a; }
.is-stat-num.nv   { color: #b07d4f; }
.is-stat-num.ag   { color: #5a7a9a; }
.is-stat-num.pe   { color: var(--wb-text-2); }

/* 进度条（今日完成情况） */
.is-progress-wrap { margin-top: 10px; }
.is-progress-bar {
    height: 6px;
    background: var(--wb-tile);
    border-radius: 3px;
    overflow: hidden;
}
.is-progress-fill {
    height: 100%;
    background: var(--wb-green);
    border-radius: 3px;
    transition: width .3s ease;
}
.is-progress-label {
    font-size: 11px;
    color: var(--wb-muted);
    margin-top: 4px;
    text-align: right;
}

/* 任务卡片 */
.is-task-card {
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color .15s ease;
}
.is-task-card:hover { border-color: var(--wb-border-strong); }
.is-task-card.is-done { opacity: .55; }
.is-task-pri {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}
.is-task-pri.hi { background: #a83a2a; }
.is-task-pri.md { background: #b07d4f; }
.is-task-pri.lo { background: #b6ada0; }
.is-task-content { flex: 1; min-width: 0; }
.is-task-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--wb-text);
    margin-bottom: 3px;
}
.is-task-meta {
    font-size: 12px;
    color: var(--wb-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.is-task-desc {
    font-size: 12px;
    color: var(--wb-text-2);
    margin-top: 5px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 日期选择器 */
.is-date-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--wb-border-strong);
    border-radius: var(--wb-radius-sm);
    padding: 6px 12px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--wb-text);
    transition: border-color .15s ease;
}
.is-date-picker:hover { border-color: var(--wb-accent-soft); }
.is-date-picker svg { width: 15px; height: 15px; color: var(--wb-muted); }

/* 视频通话标记 */
.is-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5a7a9a;
    background: #eef0f1;
    padding: 2px 9px;
    border-radius: 999px;
}

/* ============ 安装工作台子导航 ============ */
.is-sub-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--wb-border);
    margin-bottom: 20px;
}
.is-sub-tab {
    padding: 8px 18px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: var(--wb-text-2);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.is-sub-tab:hover { color: var(--wb-text); }
.is-sub-tab.active {
    color: var(--wb-accent);
    border-bottom-color: var(--wb-accent);
}
.is-sub-section { display: none; }
.is-sub-section.is-visible { display: block; }

/* ============ 自动补全（客户名称/编号） ============ */
.wb-ac-wrap { position: relative; }
.wb-ac-hint { font-size: 11px; color: var(--wb-muted); margin-top: 4px; line-height: 1.4; }
.wb-ac-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--wb-border-strong);
    border-top: 2px solid var(--wb-accent-soft);
    border-radius: 0 0 var(--wb-radius-sm) var(--wb-radius-sm);
    box-shadow: 0 8px 24px rgba(60, 45, 30, .12);
    z-index: 2000;
    max-height: 240px;
    overflow-y: auto;
}
.wb-ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--wb-line);
    transition: background .12s ease;
}
.wb-ac-item:last-child { border-bottom: none; }
.wb-ac-item:hover { background: #f9f4ec; }
.wb-ac-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--wb-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-ac-code {
    font-size: 11px;
    font-weight: 600;
    color: var(--wb-accent);
    background: #f4e5db;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.wb-ac-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.wb-ac-empty { padding: 14px 12px; font-size: 12px; color: var(--wb-muted); text-align: center; }

/* ============================================================
   返工 / 重新派发（新增）
   ============================================================ */
/* 记录标识 */
.is-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.is-tag-rework { background: #fff3e0; color: #e65100; border: 1px solid #ffd9a8; }
.is-tag-resend { background: #eef3fb; color: #3a6fb0; border: 1px solid #cfe0f5; }
.is-tag-new    { background: #f0f5e9; color: #5a7a3a; border: 1px solid #dbe8cb; }
/* 实时查询/缓存标识（安装进度来源） */
.is-tag-live   { background: #eaf5ec; color: #2f7a45; border: 1px solid #cbe6d2; }
.is-tag-cache  { background: #f3f3f6; color: #6b6b7a; border: 1px solid #e2e2ea; }

/* 上一条记录标注 */
.is-inst-prev {
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--wb-tile);
    border-left: 3px solid #d9c3a3;
    font-size: 12px;
    color: var(--wb-text-2);
    line-height: 1.7;
    word-break: break-all;
}
.is-inst-prev.is-resend { border-left-color: #9dbde0; }
.is-inst-prev.is-rework { border-left-color: #f0a860; }
.is-inst-prev b { color: var(--wb-text); font-weight: 600; }

/* 概览：返工数字 */
.c-rework { color: #e65100 !important; }
.is-rework-line {
    margin-top: 8px;
    font-size: 11px;
    color: var(--wb-muted);
    letter-spacing: .5px;
}
.is-rework-line b { color: #e65100; font-weight: 700; }

/* 只看返工 */
.wb-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--wb-text-2);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.wb-check input { accent-color: var(--wb-accent); cursor: pointer; }

/* 弹窗内：操作类型选择 */
.is-mode-box {
    margin-top: 10px;
    border-top: 1px dashed var(--wb-border);
    padding-top: 10px;
}
.is-mode-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--wb-text);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.is-mode-title .is-mode-req { color: var(--wb-accent); font-weight: 500; font-size: 11px; }
.is-mode-opt {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 8px 10px;
    border: 1px solid var(--wb-border);
    border-radius: 9px;
    margin-bottom: 6px;
    cursor: pointer;
    background: rgba(255,255,255,.5);
    transition: border-color .15s ease, background .15s ease;
}
.is-mode-opt:hover { border-color: var(--wb-border-strong); }
.is-mode-opt input { margin-top: 3px; accent-color: var(--wb-accent); flex-shrink: 0; }
.is-mode-opt.is-checked { border-color: var(--wb-accent); background: #fdf6f0; }
.is-mode-opt.is-disabled { opacity: .45; cursor: not-allowed; background: transparent; }
.is-mode-label { font-size: 13px; font-weight: 600; color: var(--wb-text); }
.is-mode-desc { font-size: 11px; color: var(--wb-muted); margin-top: 2px; line-height: 1.6; }

.is-mode-tip {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--wb-text-2);
    background: #fdf6f0;
    border: 1px solid #f0e2d2;
    border-radius: 8px;
    padding: 7px 10px;
}
.is-mode-tip.is-warn { background: #fff7ec; border-color: #ffd9a8; color: #a8541a; }

/* 历史列表 */
.is-hist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.is-hist-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--wb-line);
    font-size: 12px;
}
.is-hist-date { color: var(--wb-muted); width: 88px; flex-shrink: 0; }
.is-hist-emp { flex: 1; color: var(--wb-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 安装历史里的备注 / 说明：整块浅底，长文本自动换行（原来是 11px 小灰字，看不清） */
.is-hist-note {
    font-size: 12px;
    line-height: 1.7;
    color: var(--wb-text-2, #6f685e);
    background: #fbf7f0;
    border-left: 2px solid #e2d4bd;
    border-radius: 0 6px 6px 0;
    padding: 5px 9px;
    margin: 2px 0 6px 96px;
    word-break: break-word;
    white-space: pre-wrap;
}
.is-hist-note b { display: inline-block; margin-right: 6px; font-size: 10.5px; color: #a37a4a; font-weight: 600; }
.is-hist-note.is-desc { background: transparent; border-left-color: #e6e0d5; color: var(--wb-muted); }
.is-hist-note.is-desc b { color: var(--wb-muted); }
.is-hist-note.is-empty { background: transparent; border-left-color: transparent; color: var(--wb-muted); font-size: 11px; }

/* 按钮变体 */
.wb-btn-danger { background: #fff; border-color: #e8b4a8; color: #a83a2a; }
.wb-btn-danger:hover { background: #f7e7e1; border-color: #a83a2a; color: #a83a2a; }
.wb-btn-warning { background: #fff; border-color: #ffd9a8; color: #b0662a; }
.wb-btn-warning:hover { background: #fff3e0; border-color: #e65100; color: #e65100; }
.is-inst-header .is-inst-client { margin-right: auto; }

/* 面板标题行（标题 + 说明） */
.wb-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* ============================================================
   配置页：自动化开关（品牌匹配 / 化验影像检测）
   ============================================================ */
.cfg-auto-item {
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fdfbf7;
}
.cfg-auto-item + .cfg-auto-item { margin-top: 12px; }
.cfg-auto-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.cfg-auto-txt { flex: 1; min-width: 0; }
.cfg-auto-txt h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--wb-text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cfg-auto-off-tip { font-size: 11px; font-weight: 500; color: var(--wb-muted); }
.cfg-auto-body { margin-top: 12px; }
/* 关掉时把下面的配置区淡化，一眼看出没生效 */
.cfg-auto-item.is-off .cfg-auto-body { opacity: .55; }
.cfg-field-label { font-size: 12px; color: var(--wb-muted); flex-shrink: 0; }
.cfg-test-out { font-size: 12px; color: var(--wb-text-2); line-height: 1.7; }
.cfg-test-out b { font-weight: 700; }
.cfg-test-out.is-ok b { color: #2f7a45; }
.cfg-test-out.is-warn b { color: #b0662a; }
.cfg-test-out.is-bad b { color: #a83a2a; }

/* 开关 */
.cfg-sw { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; padding-top: 2px; }
.cfg-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.cfg-sw-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #ddd6cb;
    box-shadow: inset 0 1px 2px rgba(60, 45, 30, .12);
    transition: background .18s ease;
}
.cfg-sw-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(60, 45, 30, .28);
    transition: transform .18s ease;
}
.cfg-sw input:checked + .cfg-sw-track { background: #71895a; }
.cfg-sw input:checked + .cfg-sw-track::after { transform: translateX(20px); }
.cfg-sw input:focus-visible + .cfg-sw-track { outline: 2px solid var(--wb-accent-soft); outline-offset: 2px; }

/* 自动成功 / 检测结果标签 */
.is-tag-auto { background: #eef3fb; color: #3a6fb0; border: 1px solid #cfe0f5; }
.is-tag-lis-none { background: #f3f3f6; color: #6b6b7a; border: 1px solid #e2e2ea; }
.is-tag-lis-acc  { background: #fdecea; color: #a83a2a; border: 1px solid #f3c9c1; }
.is-tag-lis-bad  { background: #fff3e0; color: #b0662a; border: 1px solid #ffd9a8; }
.is-tag-lis-err  { background: #fff3e0; color: #8a6c37; border: 1px solid #e8dcc4; }

/* ============================================================
   配置页：飞书多维表格「接收日志」
   ============================================================ */
.intake-log-chk {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--wb-muted);
    cursor: pointer;
    user-select: none;
}
.intake-log-list {
    margin-top: 8px;
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    background: #fffdf9;
    max-height: 340px;
    overflow: auto;
}
.intake-log-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--wb-muted);
}
.intake-log-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--wb-line);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}
.intake-log-row:last-child { border-bottom: none; }
.intake-log-row:hover { background: #fbf6ee; }
.intake-log-time {
    width: 118px;
    flex-shrink: 0;
    color: var(--wb-muted);
    font-variant-numeric: tabular-nums;
}
.intake-log-badge {
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    margin-top: 1px;
}
.intake-log-badge.is-ok { background: #eef4e8; color: #4d6b3a; border: 1px solid #d5e3c6; }
.intake-log-badge.is-fail { background: #fdecea; color: #a83a2a; border: 1px solid #f3c9c1; }
.intake-log-body { flex: 1; min-width: 0; }
.intake-log-sum { color: var(--wb-text-2); word-break: break-all; }
.intake-log-meta { font-size: 11px; color: var(--wb-muted); margin-top: 2px; }
.intake-log-detail {
    margin-top: 6px;
    padding: 8px;
    border-radius: 8px;
    background: #f7f2e9;
    border: 1px solid var(--wb-border);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    color: var(--wb-text-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}

/* ===== 安装记录：客户备注（每条任务一份，方便记住客户情况） ===== */
.is-note {
    display: flex; align-items: flex-start; gap: 8px;
    margin-top: 8px; padding: 7px 10px;
    border-radius: 8px; background: #fffdf6; border: 1px solid #efe6d5;
    font-size: 12px; line-height: 1.75; color: var(--wb-text-2);
}
.is-note.is-empty { background: transparent; border-style: dashed; color: var(--wb-muted); }
.is-note-k { flex-shrink: 0; font-weight: 600; color: #a0895f; }
.is-note-txt { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-word; }
.is-note-btn {
    flex-shrink: 0; font-family: inherit; font-size: 11px; cursor: pointer;
    border: 1px solid var(--wb-border-strong); background: #fff; color: var(--wb-text-2);
    border-radius: 999px; padding: 1px 9px; line-height: 1.7;
}
.is-note-btn:hover { color: var(--wb-accent); border-color: var(--wb-accent); background: #fdf6f2; }
.is-note-tip { font-size: 12px; color: var(--wb-muted); line-height: 1.8; margin-bottom: 8px; }
.is-note-area { min-height: 112px; line-height: 1.85; }
.is-note-count { margin-top: 4px; text-align: right; font-size: 11px; color: var(--wb-muted); }

/* ===== 安装记录：任务历史时间线 ===== */
.is-hist-panel {
    margin-top: 8px; padding: 10px 12px; border-radius: 9px;
    background: #fffdf8; border: 1px dashed var(--wb-border-strong);
}
.is-hist-panel .wb-loading { padding: 4px 0; font-size: 12px; }
.is-hx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.is-hx-head b { font-size: 12.5px; color: var(--wb-text); }
.is-hx-sub { font-size: 11px; color: var(--wb-muted); }
.is-hx-tl { position: relative; padding-left: 16px; }
.is-hx-tl::before {
    content: ''; position: absolute; left: 4px; top: 4px; bottom: 8px;
    width: 1px; background: #e6ddcd;
}
.is-hx-item { position: relative; padding-bottom: 8px; }
.is-hx-item:last-child { padding-bottom: 0; }
.is-hx-dot {
    position: absolute; left: -15px; top: 7px; width: 7px; height: 7px;
    border-radius: 50%; background: #d9c9ae; box-shadow: 0 0 0 2px #fffdf8;
}
.is-hx-item.is-current .is-hx-dot { background: var(--wb-accent); }
.is-hx-card {
    background: #fff; border: 1px solid var(--wb-border); border-radius: 8px;
    padding: 7px 10px; font-size: 12px;
}
.is-hx-item.is-current .is-hx-card { border-color: #e0c9b8; background: #fdf8f3; }
.is-hx-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.is-hx-date {
    font-size: 12px; color: var(--wb-text); font-weight: 600;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.is-hx-top .is-status { font-size: 10.5px; padding: 1px 7px; }
.is-hx-meta { margin-top: 3px; font-size: 11px; color: var(--wb-muted); }
.is-hx-note { margin-top: 4px; font-size: 11.5px; color: var(--wb-text-2); line-height: 1.7; word-break: break-word; }
.is-hx-note b { display: inline-block; margin-right: 5px; font-size: 10.5px; color: #a0895f; font-weight: 600; }
.is-hx-note.is-desc b { color: var(--wb-muted); }
.is-hx-cur {
    font-size: 10px; color: var(--wb-accent); background: #fdf1e9;
    border: 1px solid #edd9cb; border-radius: 999px; padding: 0 6px;
}
.is-inst-desc b { color: var(--wb-text-2); font-weight: 600; }
