:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --sidebar-bg: #0f172a;
  --sidebar-hover: rgba(255,255,255,.06);
  --sidebar-active: rgba(255,255,255,.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --transition: .15s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Layout ── */
.page-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar { background: var(--sidebar-bg); padding: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
.sidebar-brand p { font-size: .75rem; color: rgba(255,255,255,.5); margin: 0; }
.sidebar nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.65); text-decoration: none; transition: all var(--transition); position: relative; }
.sidebar a:hover { background: var(--sidebar-hover); color: rgba(255,255,255,.9); text-decoration: none; }
.sidebar a.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.sidebar a .nav-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar a .badge-count { margin-left: auto; background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; min-width: 18px; text-align: center; }
.sidebar-section { padding: 16px 14px 6px; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.3); }
.sidebar-footer { padding: 16px 10px; border-top: 1px solid rgba(255,255,255,.06); margin-top: auto; }

/* ── Main ── */
.main-panel { padding: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

/* ── Topbar ── */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-left h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.topbar-left p { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ── Content area ── */
.content-area { padding: 24px 32px; flex: 1; display: flex; flex-direction: column; gap: 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; font-size: .875rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success-bg); color: var(--success); border-color: #a7f3d0; }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; padding: 6px 10px; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 6px; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.card-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.card-header p { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.card-header-left { flex: 1; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.stat-card .stat-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-icon { font-size: 1.5rem; float: right; opacity: .5; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; padding: 12px 16px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--border); background: var(--bg); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:hover td { background: rgba(37,99,235,.02); }
.data-table .actions { display: flex; gap: 6px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-yellow { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-gray { background: var(--bg); color: var(--text-secondary); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
input, textarea, select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: .875rem; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea { resize: vertical; min-height: 80px; }
.check-group { display: flex; align-items: center; gap: 8px; }
.check-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.check-group label { font-size: .875rem; font-weight: 500; margin: 0; }
label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 6px; }
button { font-family: inherit; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-xl); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.modal-lg { max-width: 800px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── Toast ── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; min-width: 280px; display: flex; align-items: center; gap: 10px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Conversation Chat ── */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 140px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chat-sidebar { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.chat-sidebar-header { padding: 16px; border-bottom: 1px solid var(--border); }
.chat-sidebar-header input { width: 100%; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background var(--transition); }
.chat-item:hover { background: var(--accent-light); }
.chat-item.active { background: var(--accent-light); border-left: 3px solid var(--accent); }
.chat-item .chat-item-id { font-size: .75rem; font-weight: 700; color: var(--accent); }
.chat-item .chat-item-preview { font-size: .8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .chat-item-time { font-size: .7rem; color: var(--muted); }
.chat-item .chat-item-channel { font-size: .65rem; font-weight: 600; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--muted); }

.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #fafbfc; }
.chat-bubble { max-width: 75%; padding: 12px 16px; border-radius: 16px; font-size: .875rem; line-height: 1.6; position: relative; }
.chat-bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.staff { align-self: flex-start; background: #fef3c7; border: 1px solid #fde68a; border-bottom-left-radius: 4px; }
.chat-bubble .bubble-role { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; opacity: .7; }
.chat-bubble .bubble-time { font-size: .65rem; opacity: .6; margin-top: 4px; }
.chat-bubble .bubble-actions { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity var(--transition); }
.chat-bubble:hover .bubble-actions { opacity: 1; }
.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-area textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 40px; }
.chat-empty h4 { margin-bottom: 8px; color: var(--text-secondary); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state h4 { color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: .875rem; max-width: 400px; margin: 0 auto; }

/* ── Search + Filter Bar ── */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar input[type="search"], .toolbar input[type="text"] { max-width: 280px; }
.toolbar select { max-width: 180px; }

/* ── Auth ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 25px 50px rgba(0,0,0,.3); }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; text-align: center; }
.auth-card .auth-subtitle { text-align: center; color: var(--muted); font-size: .875rem; margin-bottom: 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-card button { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; }
.auth-card button:hover { background: var(--accent-hover); }
.auth-error { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: .875rem; }

/* ── Widget ── */
.widget-shell { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); padding: 24px; }
.widget-card { width: min(480px, 100%); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.widget-header { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); color: #fff; padding: 24px; }
.widget-header h2 { margin: 0 0 6px; font-size: 1.25rem; }
.widget-header p { margin: 0; font-size: .875rem; opacity: .9; }
.messages { height: 400px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc; }
.message { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: .875rem; line-height: 1.6; }
.message.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.message.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.quick-questions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-light); background: var(--bg); }
.quick-q-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: .8rem; cursor: pointer; transition: all var(--transition); font-family: inherit; color: var(--text-secondary); }
.quick-q-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.chat-form { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form input { flex: 1; }
.chat-form button { padding: 10px 20px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: inherit; }
.chat-form button:hover { background: var(--accent-hover); }
.typing-indicator { display: flex; gap: 4px; padding: 8px 12px; }
.typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: typing 1.4s infinite; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* ── Landing ── */
.landing-hero { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; text-align: center; padding: 80px 24px 60px; }
.landing-hero h1 { font-size: 2.5rem; max-width: 700px; margin: 0 auto 16px; line-height: 1.2; }
.landing-hero p { font-size: 1.1rem; max-width: 550px; margin: 0 auto 32px; opacity: .8; }
.landing-hero .hero-actions { display: flex; gap: 12px; justify-content: center; }
.landing-features { max-width: 1100px; margin: -40px auto 40px; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.landing-features .card { text-align: center; }
.landing-features .card h3 { margin-bottom: 8px; }
.landing-embed { max-width: 800px; margin: 0 auto 60px; padding: 0 24px; }
.landing-embed pre { background: var(--sidebar-bg); color: #e2e8f0; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: .8rem; }

/* ── Diary Card ── */
.diary-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.diary-card .diary-date { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; }
.diary-card .diary-title { font-size: 1rem; font-weight: 700; margin: 4px 0; }
.diary-card .diary-meta { font-size: .8rem; color: var(--muted); }
.diary-card .diary-content { font-size: .875rem; margin-top: 8px; color: var(--text-secondary); }
.diary-card .diary-homework { margin-top: 8px; padding: 10px; background: var(--warning-bg); border-radius: 8px; font-size: .8rem; }
.diary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

/* ── Announcement ── */
.announcement-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); position: relative; }
.announcement-card.pinned { border-color: var(--accent); background: var(--accent-light); }
.announcement-card .pin-badge { position: absolute; top: 12px; right: 12px; font-size: .7rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--border); }
.tab-item { padding: 10px 18px; font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); background: none; border-top: none; border-left: none; border-right: none; }
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Misc ── */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; background: var(--accent-light); color: var(--accent); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .8rem; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.confirm-danger { background: var(--danger) !important; color: #fff !important; }

/* ── Widget launcher (embed) ── */
.widget-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 99999; border: none; border-radius: 999px; padding: 14px 18px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; font-weight: 700; box-shadow: 0 10px 30px rgba(37,99,235,.3); cursor: pointer; font-family: inherit; font-size: .875rem; }
.widget-frame { width: min(420px, 100vw - 24px); height: min(680px, 100vh - 24px); border: none; border-radius: var(--radius-xl); box-shadow: 0 25px 50px rgba(15,23,42,.2); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; z-index: 100; transition: left .3s ease; width: 260px; }
  .sidebar.open { left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .sidebar-overlay.active { display: block; }
  .mobile-menu-btn { display: flex !important; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { max-height: 300px; }
}
@media (min-width: 1025px) {
  .mobile-menu-btn { display: none !important; }
  .sidebar-overlay { display: none !important; }
}
@media (max-width: 640px) {
  .content-area { padding: 16px; }
  .topbar { padding: 16px; }
  .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-form { flex-direction: column; }
}

/* ── Notification Bell ── */
.notif-bell { position: relative; cursor: pointer; text-decoration: none; padding: 6px; border-radius: 8px; transition: background .15s; border: none; background: none; }
.notif-bell:hover { background: var(--surface-hover, rgba(0,0,0,.05)); }
.notif-bell-badge { position: absolute; top: 0; right: -2px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 380px; max-height: 440px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 100; overflow: hidden; }
.notif-dropdown-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-dropdown-list { max-height: 360px; overflow-y: auto; }
.notif-dropdown-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border-light, #f1f5f9); text-decoration: none; color: inherit; transition: background .15s; cursor: pointer; }
.notif-dropdown-item:hover { background: var(--surface-hover, #f8fafc); }
.notif-dropdown-item.unread { background: var(--accent-light, #eff6ff); }
.notif-dropdown-item .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.notif-dropdown-item .notif-body { flex: 1; min-width: 0; }
.notif-dropdown-item .notif-title { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-dropdown-item .notif-text { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-dropdown-item .notif-time { font-size: .7rem; color: var(--text-muted); }
