* { box-sizing: border-box; }
:root {
  --bg: #f6f8fb; --panel: #fff; --border: #e6e9ef;
  --text: #1f2937; --muted: #6b7280; --primary: #4f8cff; --primary-dark: #3b73e6;
  --danger: #ef4444; --success: #10b981; --warn: #f59e0b;
  --row-h: 40px; --header-h: 56px; --time-h: 48px;
}
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.hidden { display: none !important; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .15s; }
.btn:hover { background: #f0f3f8; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: #fee2e2; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #eef1f5; color: var(--text); }
.btn.block { width: 100%; justify-content: center; padding: 10px; font-size: 14px; }

/* 登录页 */
.login-body { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-card { background: #fff; border-radius: 12px; padding: 40px 36px; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); text-align: center; }
.login-card .logo { font-size: 48px; margin-bottom: 8px; }
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card .sub { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
.login-card input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,140,255,.15); }
.login-card .err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }
.login-card .hint { margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.8; padding-top: 18px; border-top: 1px solid var(--border); }
.login-card .hint code { background: #f3f4f6; padding: 1px 6px; border-radius: 3px; font-size: 11px; color: var(--text); }

/* 顶栏 */
.topbar { display: flex; align-items: center; padding: 0 20px; height: var(--header-h); background: var(--panel); border-bottom: 1px solid var(--border); gap: 24px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand .logo { font-size: 22px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav-btn { padding: 7px 14px; border: none; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .15s; }
.nav-btn:hover { background: #f0f3f8; color: var(--text); }
.nav-btn.active { background: rgba(79,140,255,.12); color: var(--primary); font-weight: 600; }
.user-area { display: flex; align-items: center; gap: 10px; }
.user-info { font-size: 13px; color: var(--muted); }
.user-info .badge { background: var(--warn); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 10px; margin-left: 4px; }
.user-info .badge.admin { background: var(--danger); }

/* 视图 */
.view { flex: 1; overflow: auto; padding: 24px 28px; display: none; }
.view.active { display: block; }
.view#view-gantt.active { padding: 0; display: flex; flex-direction: column; }
.view-title { margin: 0 0 20px; font-size: 20px; }
.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 12px 24px; }
.view-head h2 { margin: 0; font-size: 18px; }
.muted-hint { color: var(--muted); font-size: 11px; font-weight: normal; }

/* 看板 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px 20px; border: 1px solid var(--border); transition: transform .15s; cursor: default; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.stat-card .label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat-card .value { font-size: 28px; font-weight: 600; color: var(--text); }
.stat-card.warn .value { color: var(--warn); }
.stat-card.danger .value { color: var(--danger); }
.stat-card.success .value { color: var(--success); }
.stat-card.primary .value { color: var(--primary); }

.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }
.board-col { background: #fff; border-radius: 10px; padding: 16px 20px; border: 1px solid var(--border); }
.board-col h3 { margin: 0 0 12px; font-size: 15px; }
.task-feed .item, .project-mini-list .item { display: flex; padding: 10px 0; border-bottom: 1px solid #f0f2f5; gap: 10px; align-items: center; }
.task-feed .item:last-child, .project-mini-list .item:last-child { border-bottom: none; }
.task-feed .item .dot { width: 6px; height: 24px; border-radius: 3px; flex-shrink: 0; }
.task-feed .item .name { flex: 1; font-size: 13px; }
.task-feed .item .meta { color: var(--muted); font-size: 12px; }
.task-feed .item .due { color: var(--warn); font-size: 12px; font-weight: 600; }
.task-feed .item .due.over { color: var(--danger); }
.project-mini-list .item { cursor: pointer; }
.project-mini-list .item:hover { background: #f8faff; }

/* 项目列表 */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.project-card { background: #fff; border-radius: 10px; padding: 18px 20px; border: 1px solid var(--border); border-top: 4px solid var(--primary); transition: all .15s; }
.project-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.project-card h3 { margin: 0 0 6px; font-size: 16px; cursor: pointer; }
.project-card h3:hover { color: var(--primary); }
.project-card .desc { color: var(--muted); font-size: 13px; min-height: 36px; margin-bottom: 12px; }
.project-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f0f2f5; font-size: 12px; color: var(--muted); }
.project-card .actions { display: flex; gap: 4px; }
.project-card .actions button { border: none; background: none; cursor: pointer; padding: 2px 6px; color: var(--muted); border-radius: 4px; }
.project-card .actions button:hover { background: #eef1f5; }
.project-card .actions button.del:hover { color: var(--danger); background: #fee2e2; }
.readonly-tag { background: #f3f4f6; color: var(--muted); padding: 1px 6px; border-radius: 3px; font-size: 11px; margin-left: 6px; }

/* 用户表 */
.user-table { width: 100%; background: #fff; border-radius: 8px; border-collapse: collapse; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.user-table th, .user-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.user-table th { background: #fafbfd; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.user-table tbody tr:hover { background: #f8faff; }
.role-tag { padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.role-tag.admin { background: #fee2e2; color: var(--danger); }
.role-tag.employee { background: #e0f2fe; color: #0369a1; }

/* 项目参与人选择器 */
.participants-picker { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: #fff; }
.participants-picker .pp-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; cursor: pointer; user-select: none; }
.participants-picker .pp-item:hover { background: #f3f4f6; }
.participants-picker .pp-item.selected { background: #eff6ff; }
.participants-picker .pp-item input { margin: 0; cursor: pointer; }
.participants-picker .pp-name { font-size: 13px; flex: 1; }
.participants-picker .pp-meta { font-size: 11px; color: #6b7280; }
.participants-picker .pp-empty { padding: 20px; text-align: center; color: #9ca3af; font-size: 12px; }

/* 项目卡片参与人显示 */
.project-card .participants-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e5e7eb; font-size: 12px; color: #6b7280; line-height: 1.6; }
.project-card .participants-row .label { color: #9ca3af; margin-right: 4px; }
.project-card .participants-row .person-chip { display: inline-block; background: #f3f4f6; color: #374151; padding: 1px 8px; border-radius: 10px; margin-right: 4px; margin-bottom: 4px; font-size: 11px; }
.project-card .participants-row .person-chip.owner { background: #fef3c7; color: #92400e; }
.project-card .participants-row .more { color: #9ca3af; font-size: 11px; }

/* 甘特图 */
.gantt-actions { display: flex; gap: 8px; align-items: center; padding-right: 20px; }
.gantt-actions select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; }
.gantt-wrap { display: flex; flex: 1; overflow: hidden; background: var(--panel); margin: 0 12px 12px; border-radius: 8px; border: 1px solid var(--border); }
.table-pane { width: 460px; min-width: 280px; max-width: 80vw; border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; position: relative; }
.pane-resizer { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: ew-resize; z-index: 20; background: transparent; transition: background 0.15s; }
.pane-resizer:hover, .pane-resizer.active { background: rgba(79,140,255,0.3); }
.chart-pane { flex: 1; overflow: auto; position: relative; }
.th { display: flex; height: var(--time-h); padding: 0 8px; align-items: center; background: #fafbfd; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.tbody { flex: 1; overflow: auto; }
.tbody .row { display: flex; height: var(--row-h); padding: 0 8px; align-items: center; border-bottom: 1px solid #f0f2f5; transition: background .12s; }
.tbody .row:hover { background: #f5f8ff; }
.tbody .row.is-child { padding-left: 28px; }
.tbody .row.is-group { font-weight: 600; background: #fafbfd; }
.tbody .row.is-milestone .name { color: var(--warn); font-weight: 600; }
.col { padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.col-resizer { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; z-index: 10; background: transparent; transition: background 0.15s; }
.col-resizer:hover, .col-resizer.active { background: rgba(79,140,255,0.4); }
.col-name { flex: 1; min-width: 110px; display: flex; align-items: center; }
.col-star { width: 30px; text-align: center; color: #d1d5db; font-size: 14px; padding: 0; }
.col-star.is-header { color: #f59e0b; cursor: default; }
.col-star button { background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; color: inherit; transition: transform 0.15s, color 0.15s; }
.col-star button:hover { transform: scale(1.2); color: #f59e0b; }
.col-star.starred { color: #f59e0b; }
.tbody .row.is-starred { background: #fffbeb; }
.tbody .row.is-starred:hover { background: #fef3c7; }
.tbody .row.is-starred .name { font-weight: 600; }
.col-name .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; flex-shrink: 0; }
.col-name .ms-icon { color: var(--warn); margin-right: 4px; }
.col-owner { width: 64px; color: var(--muted); }
.col-tag { width: 70px; }
.col-tag .tag-chip { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; background: #f3f4f6; color: #6b7280; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-tag .tag-chip.research { background: #dbeafe; color: #1e40af; }
.col-tag .tag-chip.promo { background: #fef3c7; color: #92400e; }
.col-tag .tag-chip.finance { background: #d1fae5; color: #065f46; }
.col-date { width: 84px; color: var(--muted); font-size: 12px; }
.col-prog { width: 56px; color: var(--muted); font-size: 12px; }
.col-detail { width: 70px; font-size: 12px; }
.col-detail .detail-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #eef2ff; color: #4338ca; border-radius: 10px; cursor: pointer; font-size: 11px; border: none; transition: all .15s; }
.col-detail .detail-chip:hover { background: #c7d2fe; }
.col-detail .detail-chip.empty { background: #f3f4f6; color: var(--muted); }
.col-detail .detail-chip.done { background: #d1fae5; color: #065f46; }
.col-op { width: 66px; text-align: right; }
.col-op button { border: none; background: none; cursor: pointer; padding: 2px 6px; color: var(--muted); border-radius: 4px; }
.col-op button:hover { background: #eef1f5; color: var(--text); }
.col-op button.del:hover { color: var(--danger); background: #fee2e2; }

/* timeline header */
.timeline { position: sticky; top: 0; z-index: 5; background: #fafbfd; border-bottom: 1px solid var(--border); height: var(--time-h); display: flex; flex-direction: column; overflow: hidden; }
.tl-row { display: flex; height: 24px; align-items: center; border-bottom: 1px solid #f0f2f5; }
.tl-row:last-child { border-bottom: none; }
.tl-cell { flex-shrink: 0; border-right: 1px solid #eef1f5; text-align: center; font-size: 11px; color: var(--muted); padding: 0 4px; line-height: 24px; overflow: hidden; }
.tl-cell.month { font-weight: 600; color: var(--text); background: #fff; }
.tl-cell.today { background: #fff4e5; color: #c4500a; font-weight: 600; }
.tl-cell.weekend { background: #fafafa; }

.chart { position: relative; min-height: 100%; }
.chart .grid-row { height: var(--row-h); border-bottom: 1px solid #f0f2f5; position: relative; }
.chart .grid-row:hover { background: #f8faff; }
.chart .grid-col { position: absolute; top: 0; bottom: 0; border-right: 1px solid #f5f6f8; }
.chart .grid-col.weekend { background: rgba(0,0,0,.015); }
.chart .grid-col.today { background: rgba(255,165,0,.08); border-right: 2px solid #ff9500; }

.bar { position: absolute; height: 22px; top: 9px; border-radius: 4px; cursor: grab; user-select: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; transition: box-shadow .15s; z-index: 2; }
.bar.readonly { cursor: default; }
.bar:hover { box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.bar:active { cursor: grabbing; }
.bar .progress { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.28); border-radius: 4px 0 0 4px; pointer-events: none; }
.bar .label { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.bar .handle { position: absolute; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.bar .handle.left { left: 0; }
.bar .handle.right { right: 0; }

/* milestone diamond */
.milestone { position: absolute; top: 8px; width: 24px; height: 24px; transform: rotate(45deg); background: var(--warn); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); z-index: 3; cursor: pointer; }
.milestone-label { position: absolute; top: 4px; font-size: 11px; color: var(--warn); font-weight: 600; white-space: nowrap; z-index: 3; pointer-events: none; }

.dep-svg { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.dep-line { stroke: #94a3b8; stroke-width: 1.5; fill: none; }
.dep-arrow { fill: #94a3b8; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(2px); }
.modal-card { background: #fff; border-radius: 10px; width: 480px; max-width: 92vw; padding: 22px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.2); max-height: 90vh; overflow: auto; }
.modal-card h3 { margin: 0 0 16px; font-size: 16px; }
.form-row { margin-bottom: 14px; position: relative; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,140,255,.15); }
.form-row input[type="checkbox"] { width: auto; margin-right: 6px; vertical-align: middle; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* empty state */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .icon { font-size: 36px; margin-bottom: 8px; }

/* role-based UI hiding via JS toggling 'is-readonly' on body */
body.is-readonly .editable-only { display: none !important; }
body:not(.is-admin) .admin-only { display: none !important; }

/* 明细抽屉 */
.drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 92vw; height: 100vh; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.12); z-index: 80; display: flex; flex-direction: column; transition: transform .25s ease; transform: translateX(0); }
.drawer.hidden { transform: translateX(100%); pointer-events: none; display: flex !important; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.drawer-head .dh-sub { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.drawer-head h3 { margin: 0; font-size: 17px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 32px; }
.detail-summary { margin-bottom: 14px; padding: 10px 14px; background: #f8fafc; border-radius: 6px; font-size: 13px; color: var(--muted); }
.detail-summary .bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.detail-summary .bar i { display: block; height: 100%; background: var(--success); transition: width .3s; }
.detail-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.batch-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; background: #eef4ff; border: 1px solid #c7d8fb; border-radius: 6px; }
.batch-bar #batchCount { font-size: 12px; color: var(--primary); font-weight: 600; margin-right: 6px; }
.batch-bar .btn { padding: 4px 10px; font-size: 12px; }
.batch-bar.hidden { display: none; }
.detail-list { list-style: none; padding: 0; margin: 14px 0 0; }
.detail-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.detail-item:last-child { border-bottom: none; }
.detail-item .drag-handle { color: #cbd5e1; cursor: grab; padding: 4px 2px; font-size: 14px; line-height: 1; user-select: none; flex-shrink: 0; margin-top: 2px; }
.detail-item .drag-handle:hover { color: var(--muted); }
.detail-item.dragging { opacity: .4; }
.detail-item.drag-over { border-top: 2px solid var(--primary); }
.detail-item .batch-check { width: 16px; height: 16px; margin-top: 4px; cursor: pointer; flex-shrink: 0; }
.detail-item .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-top: 1px; background: #fff; color: transparent; font-size: 13px; transition: all .15s; }
.detail-item .check.todo { color: transparent; }
.detail-item .check.doing { background: var(--warn); border-color: var(--warn); color: #fff; }
.detail-item .check.doing::after { content: '…'; font-size: 16px; line-height: 1; margin-bottom: 4px; }
.detail-item .check.done { background: var(--success); border-color: var(--success); color: #fff; }
.detail-item .check.done::after { content: '✓'; font-weight: 700; }
.detail-item .body { flex: 1; min-width: 0; }
.detail-item .title { font-size: 14px; line-height: 1.4; }
.detail-item.done .title { text-decoration: line-through; color: var(--muted); }
.detail-item .meta { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-item .meta .due.over { color: var(--danger); font-weight: 600; }
.detail-item .ops { display: flex; gap: 2px; flex-shrink: 0; }
.detail-item .ops button { border: none; background: none; cursor: pointer; padding: 2px 6px; color: var(--muted); border-radius: 4px; font-size: 13px; }
.detail-item .ops button:hover { background: #eef1f5; color: var(--text); }
.detail-item .ops button.del:hover { color: var(--danger); background: #fee2e2; }

/* 反馈列表 */
.feedback-list { margin-top: 16px; }
.feedback-item { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; border: 1px solid #e5e7eb; }
.feedback-item .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.feedback-item .type { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.feedback-item .type.suggestion { background: #dbeafe; color: #1e40af; }
.feedback-item .type.complaint { background: #fee2e2; color: #991b1b; }
.feedback-item .type.other { background: #f3f4f6; color: #374151; }
.feedback-item .time { color: #6b7280; font-size: 12px; }
.feedback-item .meta { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.feedback-item .title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feedback-item .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.feedback-item .head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.feedback-item .sender {
  font-size: 13px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.feedback-item .sender .name { font-weight: 500; }
.feedback-item .sender .dept { color: #6b7280; background: #f3f4f6; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.feedback-item .del-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.feedback-item .del-btn:hover { background: #fecaca; }
.feedback-item .title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #1f2937; }
.feedback-item .content { color: #374151; line-height: 1.7; font-size: 13px; background: #f9fafb; padding: 10px 14px; border-radius: 6px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.feedback-item .anon { color: #9ca3af; font-size: 11px; margin-left: 8px; }

#fn_status.success { color: #10b981; }
#fn_status.error { color: #ef4444; }
#fn_status.checking { color: #6b7280; }

/* @提及下拉 */
.mention-list { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.1); max-height: 180px; overflow-y: auto; z-index: 200; min-width: 180px; margin-top: 2px; }
.mention-list.hidden { display: none; }
.mention-item { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mention-item:hover, .mention-item.active { background: #eff6ff; }
.mention-item .uname { color: var(--muted); font-size: 11px; }
