/* personalPlanner - tema claro estilo Jira */
:root {
  --bg: #F7F8F9; --surface: #fff; --surface-2: #F1F2F4; --surface-hover: #F1F2F4;
  --text: #172B4D; --text-subtle: #626F86; --text-disabled: #8590A2;
  --primary: #0C66E4; --primary-hover: #0055CC; --primary-soft: #E9F2FF;
  --border: #DCDFE4; --border-strong: #B3B9C4;
  --todo: #626F86; --doing: #0C66E4; --done: #1F845A;
  --danger: #C9372C; --danger-soft: #FFEDEB; --warning: #B65C02; --warning-soft: #FFF7D6; --success-soft: #DCFFF1;
  --radius-sm: 4px; --radius: 6px; --radius-lg: 8px;
  --shadow-sm: 0 1px 1px rgba(9,30,66,.18), 0 0 1px rgba(9,30,66,.2);
  --shadow: 0 2px 6px rgba(9,30,66,.14), 0 0 1px rgba(9,30,66,.25);
  --shadow-lg: 0 12px 32px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.3);
  --sidebar-w: 248px; --header-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.muted { color: var(--text-subtle); } .small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row-wrap { flex-wrap: wrap; } .spacer { flex: 1; }
.icon { flex: none; vertical-align: middle; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: var(--radius-sm); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, box-shadow .12s, transform .05s; text-decoration: none; }
.btn:hover { text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-subtle { background: var(--surface-2); color: var(--text); } .btn-subtle:hover:not(:disabled) { background: #E4E6EA; }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover:not(:disabled) { background: #AE2E24; }
.btn-ghost { background: transparent; color: var(--text); } .btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-sm { height: 26px; padding: 0 8px; font-size: 13px; }
.btn-block { width: 100%; height: 40px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; border-radius: var(--radius); color: var(--text-subtle); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- formularios ---------- */
.field { margin-bottom: 14px; } .field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-subtle); margin-bottom: 4px; }
.field-hint { font-size: 12px; color: var(--text-subtle); margin-top: 4px; } .field-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.has-error .input { border-color: var(--danger); }
.input { display: block; width: 100%; min-height: 36px; padding: 6px 10px; background: #FAFBFC; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .12s, background .12s, box-shadow .12s; }
.input:hover { background: #F4F5F7; } .input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); outline: none; }
.textarea { min-height: 84px; resize: vertical; } .select { appearance: auto; }
input[type=color] { padding: 2px; height: 36px; width: 56px; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }

/* ---------- tarjetas, tablas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-hover { transition: box-shadow .15s, transform .15s; cursor: pointer; } .card-hover:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-subtle); padding: 8px 12px; border-bottom: 2px solid var(--border); white-space: nowrap; user-select: none; }
.table th.sortable { cursor: pointer; } .table th.sortable:hover { color: var(--text); }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: var(--surface-hover); }
.table tr.clickable { cursor: pointer; }

/* ---------- páginas y rejillas ---------- */
.page { padding: 24px 32px 48px; max-width: 1400px; margin: 0 auto; width: 100%; }
.page-wide { max-width: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-header h1 { display: flex; align-items: center; gap: 10px; }
.page-header .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-sub { color: var(--text-subtle); margin-top: 2px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-kpi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--kpi, var(--border)); }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .03em; }
.kpi-value { font-size: 28px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.kpi-sub { font-size: 12px; color: var(--text-subtle); }
.empty { text-align: center; padding: 48px 16px; color: var(--text-subtle); }
.empty h3 { color: var(--text); margin-bottom: 4px; } .empty-icon { color: var(--border-strong); margin-bottom: 8px; }
.center-screen { min-height: 60vh; display: grid; place-items: center; }

/* ---------- avatar ---------- */
.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; flex: none; font-weight: 600; box-shadow: 0 0 0 2px var(--surface); }
.avatar-initials { line-height: 1; } .avatar-empty { background: var(--surface-2); color: var(--text-subtle); box-shadow: none; border: 1px dashed var(--border-strong); }
.avatar-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; border-radius: 50%; background: #172B4D; color: #fff; box-shadow: 0 0 0 1.5px var(--surface); }
.avatar-stack { display: inline-flex; } .avatar-stack .avatar + .avatar { margin-left: -6px; }
.avatar-more { background: var(--surface-2); color: var(--text-subtle); font-size: 11px; }

/* ---------- estado ---------- */
.status-icon { display: inline-grid; place-items: center; flex: none; }
.status-todo { color: var(--todo); } .status-doing { color: var(--doing); } .status-done { color: #fff; background: var(--done); border-radius: 50%; animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.status-done .icon { width: 70%; height: 70%; }
.status-dot { width: 55%; height: 55%; border-radius: 50%; background: var(--todo); animation: pulse 2.2s ease-in-out infinite; }
.status-doing .icon { animation: spin 3.5s linear infinite; }
.lozenge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px 1px 5px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; line-height: 18px; }
.lozenge-todo { background: #E9EBEF; color: #44546F; } .lozenge-doing { background: var(--primary-soft); color: #0055CC; } .lozenge-done { background: var(--success-soft); color: #216E4E; }
.lozenge-todo .status-dot { background: #44546F; } .lozenge-doing { --doing: #0055CC; }
.lozenge-done .status-done { background: #1F845A; }
.priority { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 160px; padding: 0 8px; height: 20px; border-radius: 10px; font-size: 12px; background: color-mix(in srgb, var(--chip) 16%, #fff); color: var(--text); border: 1px solid color-mix(in srgb, var(--chip) 40%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip); flex: none; }
.chip-x { border: 0; background: none; cursor: pointer; padding: 0; line-height: 1; color: var(--text-subtle); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 0 6px; border-radius: var(--radius-sm); color: var(--text-subtle); line-height: 20px; white-space: nowrap; }
.due-over { background: var(--danger-soft); color: var(--danger); font-weight: 600; } .due-soon { background: var(--warning-soft); color: var(--warning); font-weight: 600; } .due-done { text-decoration: line-through; opacity: .7; }
.health { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; color: var(--done); }
.health-fair { color: #946F00; } .health-poor { color: var(--warning); } .health-critical { color: var(--danger); }
.health-heart { fill: currentColor; fill-opacity: .2; animation: heartbeat var(--beat, 1.2s) ease-in-out infinite; transform-origin: center; }
.proj-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(9,30,66,.54); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modal-in .2s cubic-bezier(.2,.9,.3,1.1); outline: none; display: flex; flex-direction: column; }
.modal-lg { max-width: 820px; } .modal-xl { max-width: 1040px; } .modal-sm { max-width: 400px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 8px; }
.modal-body { padding: 8px 20px 20px; } .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border); }
.modal-open-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ---------- dropdown / pickers ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; border-radius: var(--radius); }
.dropdown-menu { position: absolute; top: calc(100% + 6px); z-index: 500; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 4px; animation: menu-in .12s ease-out; }
.dropdown-menu.align-left { left: 0; } .dropdown-menu.align-right { right: 0; }
.dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: var(--radius-sm); text-align: left; cursor: pointer; color: var(--text); text-decoration: none; }
.dropdown-item:hover { background: var(--surface-2); text-decoration: none; } .dropdown-item.danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-head { padding: 8px 10px; }
.picker { position: relative; } .picker-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.picker-value { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; } .picker-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 1px 8px 1px 2px; font-size: 13px; }
.picker-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 500; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px; animation: menu-in .12s ease-out; }
.picker-list { max-height: 260px; overflow-y: auto; } .picker-search { margin-bottom: 4px; }
.picker-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.picker-item:hover { background: var(--surface-2); } .picker-item.is-selected { background: var(--primary-soft); } .picker-label { flex: 1; } .picker-check { color: var(--primary); } .picker-none { padding: 8px; }

/* ---------- toasts / spinner ---------- */
.toasts { position: fixed; z-index: 2000; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 14px; background: #172B4D; color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: toast-in .25s cubic-bezier(.2,.9,.3,1.1); min-width: 220px; }
.toast .icon-btn { color: #B3B9C4; width: 24px; height: 24px; } .toast .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.toast span { flex: 1; } .toast-error { background: var(--danger); } .toast-success { background: #216E4E; }
.spinner { display: inline-block; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary .spinner, .btn-danger .spinner { border-color: rgba(255,255,255,.4); border-top-color: #fff; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: var(--header-h) 1fr; grid-template-areas: "side head" "side main"; min-height: 100vh; transition: grid-template-columns .2s; }
.shell.collapsed { grid-template-columns: 60px 1fr; }
.sidebar { grid-area: side; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 60; }
.brand { display: flex; align-items: center; gap: 10px; height: var(--header-h); padding: 0 14px; font-weight: 700; font-size: 16px; color: var(--text); flex: none; white-space: nowrap; } .brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; flex: none; }
.nav { padding: 4px 8px; overflow-y: auto; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius); color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; } .nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-item .nav-label { text-align: left; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-section { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 4px; font-size: 11px; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.nav-section .icon-btn { width: 24px; height: 24px; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; background: #F3F0FF; color: #5E4DB2; padding: 0 6px; border-radius: 8px; line-height: 16px; }
.nav-sub { padding-left: 4px; } .nav-proj { height: auto; min-height: 34px; padding: 4px 10px; }
.nav-proj .proj-dot { width: 12px; height: 12px; }
.sidebar-foot { border-top: 1px solid var(--border); padding: 6px 8px; }
.shell.collapsed .nav-label, .shell.collapsed .nav-section span, .shell.collapsed .brand-name, .shell.collapsed .badge, .shell.collapsed .nav-proj-meta { display: none; }
.shell.collapsed .nav-section { padding: 10px 0 2px; justify-content: center; } .shell.collapsed .nav-item { justify-content: center; padding: 0; }
.header { grid-area: head; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.search { position: relative; flex: 1; max-width: 420px; } .search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.search input { padding-left: 34px; height: 34px; min-height: 0; border-radius: 17px; }
.main { grid-area: main; min-width: 0; display: flex; }
.main > * { flex: 1; min-width: 0; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 3px; border-radius: 20px; } .user-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
.scrim { display: none; }
.view-fade { animation: fade .18s ease-out; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #E9F2FF 0%, var(--bg) 55%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 32px 28px 24px; animation: modal-in .3s ease-out; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; } .login-logo img { width: 52px; height: 52px; } .login-logo h1 { font-size: 22px; }
.login-error { background: var(--danger-soft); color: var(--danger); padding: 8px 12px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; }
.login-ok { background: var(--success-soft); color: #216E4E; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; }
.login-forgot { display: block; margin: 14px auto 0; font-size: 13px; }
.badge-alert { background: var(--danger); color: #fff; margin-left: 4px; }
.reset-requests { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--danger); }
.login-back { display: block; text-align: center; margin-top: 18px; font-size: 13px; }

/* ---------- animaciones ---------- */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } 60% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; grid-template-areas: "head" "main"; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .shell.drawer-open .sidebar { transform: none; }
  .shell.collapsed .nav-label, .shell.collapsed .nav-section span, .shell.collapsed .brand-name, .shell.collapsed .badge, .shell.collapsed .nav-proj-meta { display: revert; }
  .shell.collapsed .nav-item { justify-content: flex-start; padding: 0 10px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(9,30,66,.5); animation: fade .15s; }
  .menu-btn { display: inline-grid; }
  .header { padding: 0 10px; gap: 8px; } .user-name { display: none; }
  .page { padding: 16px 12px 40px; } h1 { font-size: 20px; }
  .modal-backdrop { padding: 12px 8px; } .modal-body { padding: 8px 14px 16px; } .modal-header { padding: 14px 14px 6px; }
  .toasts { left: 8px; right: 8px; bottom: 8px; }
}
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } .kpi-value { font-size: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; } .link-btn:hover { text-decoration: underline; }

/* ---- Menciones @ ---- */
.mention-wrap { position: relative; }
.mention-wrap > textarea { width: 100%; }
.mention-pop { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; z-index: 600; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 640px) { .mention-pop { right: auto; min-width: 280px; max-width: 360px; } }
.mention-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 40px; border-radius: var(--radius-sm); cursor: pointer; }
.mention-opt.on, .mention-opt:hover { background: var(--primary-soft); }
.mention-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mention-kind { font-size: 11px; color: var(--text-subtle); background: var(--surface-2); border-radius: 10px; padding: 1px 8px; }
a.mention { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px 0 2px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; text-decoration: none; line-height: 20px; vertical-align: baseline; white-space: nowrap; }
a.mention:hover { background: #CFE1FD; text-decoration: none; }
a.mention-agent { background: #F3F0FF; color: #5E4DB2; } a.mention-agent:hover { background: #E5DEFF; }
.mention-av { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 700; line-height: 1; }
a.mention-agent .mention-av { border-radius: 4px; }
.bell { margin-right: 2px; }
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-subtle); }
.bell-btn:hover { background: var(--surface-2); color: var(--text); }
.bell-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.mn-panel { width: 380px; max-width: calc(100vw - 24px); max-height: min(70vh, 520px); overflow-y: auto; }
.mn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.mn-list { list-style: none; margin: 0; padding: 0; }
.mn-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.mn-item:hover { background: var(--surface-hover); text-decoration: none; }
.mn-item.unread { background: var(--primary-soft); }
.mn-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mn-head { font-size: 13px; } .mn-key { font-family: var(--mono); font-size: 12px; color: var(--text-subtle); }
.mn-title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-excerpt { font-size: 12px; color: var(--text-subtle); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex: none; }
.mn-empty { padding: 20px 12px; text-align: center; } .mn-more { justify-content: center; color: var(--primary); border-top: 1px solid var(--border); border-radius: 0; }
.my-mentions { margin-bottom: 16px; padding: 0; overflow: hidden; } .my-mentions .mn-all { margin-left: auto; }
.my-mentions .mn-item { border-radius: 0; border-top: 1px solid var(--border); padding: 10px 16px; }
@media (max-width: 760px) { .dropdown.bell .dropdown-menu { position: fixed; top: 52px; left: 8px; right: 8px; } .mn-panel { width: auto; max-width: none; } }
