/* ============================================================
   考勤系统 - 全局样式
   设计：移动优先、清爽现代、卡片式
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warn: #f59e0b;
    --warn-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    --info: #0ea5e9;
    --info-light: #f0f9ff;

    --text: #1e293b;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #e2e8f0;
    --bg: #f1f5f9;
    --card: #ffffff;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, .25);
}
.topbar-inner {
    max-width: 1180px; margin: 0 auto;
    padding: 14px 20px;
    display: flex; align-items: center; gap: 16px;
}
.topbar .brand {
    font-size: 17px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 9px; letter-spacing: .3px;
}
.topbar .brand:hover { text-decoration: none; }
.topbar .brand .logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    display: grid; place-items: center; font-size: 16px;
}
.topbar .spacer { flex: 1; }
.topbar .userbox {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: rgba(255, 255, 255, .92);
}
.topbar .userbox .avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: grid; place-items: center;
    font-weight: 600; font-size: 13px;
}
.topbar .btn-outline {
    color: #fff; border: 1px solid rgba(255, 255, 255, .4);
    padding: 5px 13px; border-radius: 999px; font-size: 13px;
    transition: .18s;
}
.topbar .btn-outline:hover {
    background: rgba(255, 255, 255, .16); text-decoration: none;
}

/* ---------------- 页面容器 ---------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 22px 20px 60px; }

.page-title {
    font-size: 20px; font-weight: 700; margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px;
}
.page-sub { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.card-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

/* ---------------- 统计卡片 ---------------- */
.stats {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 18px;
}
.stat {
    background: var(--card); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow);
    border-left: 3px solid var(--primary);
}
.stat .label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.stat .value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat .unit { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.stat.ok { border-left-color: var(--success); }
.stat.ok .value { color: var(--success); }
.stat.warn { border-left-color: var(--warn); }
.stat.warn .value { color: var(--warn); }
.stat.bad { border-left-color: var(--danger); }
.stat.bad .value { color: var(--danger); }
.stat.info { border-left-color: var(--info); }
.stat.info .value { color: var(--info); }
.stat.purple { border-left-color: var(--purple); }
.stat.purple .value { color: var(--purple); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 17px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: #fff; color: var(--text);
    font-size: 13.5px; font-weight: 500; cursor: pointer;
    transition: .16s; font-family: inherit; white-space: nowrap;
}
.btn:hover { background: #f8fafc; text-decoration: none; border-color: #cbd5e1; }
.btn-primary {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #059669; border-color: #059669; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- 表单 ---------------- */
.form-row { margin-bottom: 15px; }
.form-label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--text-2); margin-bottom: 6px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
    width: 100%; padding: 9px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; color: var(--text);
    background: #fff; transition: .16s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-grid {
    display: grid; gap: 0 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.form-actions {
    display: flex; gap: 10px; margin-top: 20px;
    padding-top: 18px; border-top: 1px solid var(--border);
}

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
    text-align: left; padding: 11px 14px;
    background: #f8fafc; color: var(--text-2);
    font-weight: 600; font-size: 12.5px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl td {
    padding: 11px 14px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
table.tbl tbody tr:hover { background: #f8fafc; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num { font-variant-numeric: tabular-nums; }
table.tbl .empty {
    text-align: center; color: var(--text-3); padding: 46px 20px;
}

/* ---------------- 徽章 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge.ok      { background: var(--success-light); color: #047857; }
.badge.warn    { background: var(--warn-light);    color: #b45309; }
.badge.bad     { background: var(--danger-light);  color: #b91c1c; }
.badge.info    { background: var(--info-light);    color: #0369a1; }
.badge.muted   { background: #f1f5f9;              color: #64748b; }
.badge.purple  { background: var(--purple-light);  color: #6d28d9; }

/* ---------------- 提示条 ---------------- */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 13.5px;
    display: flex; align-items: flex-start; gap: 9px;
}
.alert.ok   { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert.bad  { background: var(--danger-light);  color: #991b1b; border: 1px solid #fecaca; }
.alert.warn { background: var(--warn-light);    color: #92400e; border: 1px solid #fde68a; }
.alert.info { background: var(--info-light);    color: #075985; border: 1px solid #bae6fd; }

/* ---------------- 登录页 ---------------- */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 20px;
    background: linear-gradient(140deg, #1e3a8a 0%, #2563eb 42%, #0ea5e9 100%);
    position: relative; overflow: hidden;
}
.login-page::before,
.login-page::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.login-page::before { width: 460px; height: 460px; top: -180px; right: -130px; }
.login-page::after  { width: 340px; height: 340px; bottom: -140px; left: -110px; }

.login-box {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 18px;
    padding: 38px 34px 32px;
    box-shadow: var(--shadow-lg);
    position: relative; z-index: 1;
}
.login-logo {
    width: 58px; height: 58px; border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: grid; place-items: center;
    font-size: 27px; margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .32);
}
.login-title {
    font-size: 21px; font-weight: 700; text-align: center;
    margin-bottom: 6px; letter-spacing: .5px;
}
.login-desc {
    text-align: center; color: var(--text-3);
    font-size: 13px; margin-bottom: 28px;
}
.login-box .input {
    padding: 11px 14px; font-size: 15px;
    background: #f8fafc; border-color: #e2e8f0;
}
.login-box .input:focus { background: #fff; }
.login-box .btn-primary {
    padding: 12px; font-size: 15px; font-weight: 600;
    margin-top: 6px; letter-spacing: 1px;
}
.login-foot {
    text-align: center; margin-top: 20px;
    font-size: 12px; color: var(--text-3); line-height: 1.8;
}

/* ---------------- 月份切换 ---------------- */
.month-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; background: var(--card);
    border-radius: var(--radius); padding: 12px 16px;
    box-shadow: var(--shadow); margin-bottom: 18px;
}
.month-nav .cur {
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.month-nav .cur .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* ---------------- 打卡日列表 ---------------- */
.day-list { }
.day-item {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: .14s;
}
.day-item:last-child { border-bottom: none; }
.day-item:hover { background: #f8fafc; }
.day-item.is-rest { background: #fcfcfd; }
.day-item.is-rest .day-date .d { color: var(--text-3); }

.day-date {
    width: 62px; flex-shrink: 0; text-align: center;
}
.day-date .d { font-size: 20px; font-weight: 700; line-height: 1.15; }
.day-date .w { font-size: 11px; color: var(--text-3); }
.day-date.weekend .d { color: #94a3b8; }

.day-times {
    flex: 1; min-width: 0;
    display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.punch-cell { font-variant-numeric: tabular-nums; }
.punch-cell .k {
    font-size: 11px; color: var(--text-3);
    display: block; margin-bottom: 1px;
}
.punch-cell .v { font-size: 15px; font-weight: 600; }
.punch-cell .v.miss { color: var(--text-3); font-weight: 400; }

.day-right {
    flex-shrink: 0; text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.day-right .dur { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------------- 打卡时间轴（日详情） ---------------- */
.timeline { padding: 6px 0; }
.tl-item {
    display: flex; gap: 16px; padding: 10px 20px;
    position: relative;
}
.tl-item .tl-time {
    width: 74px; flex-shrink: 0;
    font-size: 16px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}
.tl-item .tl-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--primary); flex-shrink: 0;
    margin-top: 7px; position: relative;
}
.tl-item:not(:last-child) .tl-dot::after {
    content: ''; position: absolute; left: 50%; top: 13px;
    width: 2px; height: 30px; background: #dbeafe;
    transform: translateX(-50%);
}
.tl-item .tl-body { flex: 1; }
.tl-item .tl-tag { font-size: 14px; font-weight: 600; }
.tl-item .tl-meta { font-size: 12px; color: var(--text-3); }

/* 三类打卡配色：上班=绿 / 中午=蓝 / 下班=橙，用颜色一眼分清一次打完还是打了三次 */
.tl-item.tl-ok   .tl-time,
.tl-item.tl-ok   .tl-tag { color: #16a34a; }
.tl-item.tl-ok   .tl-dot { background: #16a34a; }
.tl-item.tl-ok:not(:last-child) .tl-dot::after { background: #dcfce7; }

.tl-item.tl-muted .tl-time,
.tl-item.tl-muted .tl-tag { color: var(--primary); }
.tl-item.tl-muted .tl-dot { background: var(--primary); }

.tl-item.tl-warn .tl-time,
.tl-item.tl-warn .tl-tag { color: #ea580c; }
.tl-item.tl-warn .tl-dot { background: #ea580c; }
.tl-item.tl-warn:not(:last-child) .tl-dot::after { background: #ffedd5; }

/* 时间轴底部的一句话结论（有没有中午打卡） */
.tl-foot {
    margin: 6px 20px 14px; padding: 9px 14px;
    background: var(--bg-2); border-radius: 10px;
    font-size: 13px; color: var(--text-2);
}
.tl-foot b { color: var(--text-1); }

/* ---------------- 空状态 ---------------- */
.empty-state {
    text-align: center; padding: 56px 20px; color: var(--text-3);
}
.empty-state .icon { font-size: 44px; margin-bottom: 12px; opacity: .5; }
.empty-state .txt { font-size: 14px; }

/* ---------------- 分页 ---------------- */
.pager {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 18px; flex-wrap: wrap;
}
.pager a, .pager span {
    min-width: 34px; height: 34px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-2); background: #fff;
}
.pager a:hover { background: var(--primary-light); border-color: #bfdbfe; text-decoration: none; }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .dis { opacity: .45; pointer-events: none; }
.pager .info { border: none; background: none; color: var(--text-3); font-size: 12.5px; }

/* ---------------- 后台布局 ---------------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
    width: 212px; flex-shrink: 0; background: #0f172a; color: #cbd5e1;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .side-brand {
    padding: 20px 20px 16px; font-size: 15.5px; font-weight: 700;
    color: #fff; display: flex; align-items: center; gap: 9px;
    border-bottom: 1px solid #1e293b;
}
.admin-side .side-brand .logo {
    width: 29px; height: 29px; border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    display: grid; place-items: center; font-size: 15px;
}
.side-group { padding: 14px 0 4px; }
.side-group .gl {
    padding: 0 20px 7px; font-size: 11px; color: #64748b;
    letter-spacing: 1px; font-weight: 600;
}
.admin-side a.nav {
    display: flex; align-items: center; gap: 10px;
    padding: 9.5px 20px; color: #cbd5e1; font-size: 13.5px;
    border-left: 3px solid transparent; transition: .15s;
}
.admin-side a.nav:hover {
    background: #1e293b; color: #fff; text-decoration: none;
}
.admin-side a.nav.active {
    background: #1e293b; color: #fff;
    border-left-color: #3b82f6; font-weight: 500;
}
.admin-side a.nav .ico { width: 17px; text-align: center; opacity: .9; }
.admin-side .side-foot {
    margin-top: auto; padding: 16px 20px;
    border-top: 1px solid #1e293b; font-size: 12px; color: #64748b;
}
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-head {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 26px; display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 50;
}
.admin-head h2 { font-size: 17px; font-weight: 700; }
.admin-head .spacer { flex: 1; }
.admin-head .who { font-size: 13px; color: var(--text-2); }
.admin-content { padding: 24px 26px 60px; flex: 1; }

/* ---------------- 工具条 ---------------- */
.toolbar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.toolbar .spacer { flex: 1; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; }
.toolbar .input.search { min-width: 200px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
    .admin-layout { flex-direction: column; }
    .admin-side {
        width: 100%; height: auto; position: static;
        flex-direction: row; overflow-x: auto; padding-bottom: 0;
    }
    .admin-side .side-brand { border-bottom: none; padding: 14px 16px; white-space: nowrap; }
    .side-group { display: flex; padding: 0; }
    .side-group .gl { display: none; }
    .admin-side a.nav { padding: 14px 14px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-side a.nav.active { border-left: none; border-bottom-color: #3b82f6; }
    .admin-side .side-foot { display: none; }
    .admin-content { padding: 16px; }
    .admin-head { padding: 12px 16px; }
    .admin-head h2 { font-size: 15px; }
}

@media (max-width: 640px) {
    .wrap, .wrap-narrow { padding: 14px 12px 50px; }
    .card-body { padding: 15px; }
    .topbar-inner { padding: 10px 12px; gap: 8px; }
    .topbar .brand { font-size: 15px; gap: 6px; }
    .topbar .brand .logo { width: 26px; height: 26px; font-size: 14px; border-radius: 7px; }
    .topbar .brand span.bname { display: none; }
    .topbar .userbox { gap: 6px; font-size: 12px; min-width: 0; }
    .topbar .userbox .uname { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar .userbox .empno { display: none; }
    .topbar .userbox .avatar { width: 25px; height: 25px; font-size: 12px; }
    .topbar .btn-outline { padding: 4px 10px; font-size: 12px; }
    .stats { gap: 9px; grid-template-columns: repeat(2, 1fr); }
    .stat { padding: 12px 14px; }
    .stat .value { font-size: 20px; }
    .day-item { padding: 11px 13px; gap: 10px; }
    .day-date { width: 48px; }
    .day-date .d { font-size: 17px; }
    .day-times { gap: 14px; }
    .punch-cell .v { font-size: 14px; }
    .month-nav { padding: 10px 12px; }
    .month-nav .cur { font-size: 14.5px; }
    .login-box { padding: 30px 22px 26px; border-radius: 15px; }
}

/* 超窄屏进一步压缩，避免状态徽章被挤出 */
@media (max-width: 420px) {
    .day-item { gap: 8px; padding: 11px 11px; }
    .day-times { gap: 12px; }
    .day-date { width: 42px; }
    .day-date .d { font-size: 16px; }
    .day-right .badge { font-size: 11px; padding: 2px 7px; }
    .day-right .dur { font-size: 11px; }
    .month-nav { gap: 6px; }
    .month-nav .cur { font-size: 14px; }
}

/* 打印 */
@media print {
    .topbar, .admin-side, .admin-head, .toolbar, .pager, .no-print { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #e2e8f0; }
}

/* ============================================================
   通知总线（.ntf-*）—— 通知中心 / 顶部铃铛 / 未读角标
   命名空间独立，不影响任何既有类
   ============================================================ */
.ntf-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    font-size: 16px;
    color: var(--text-2);
    background: transparent;
    transition: background .15s;
    flex: 0 0 auto;
}
.ntf-bell:hover { background: rgba(15, 23, 42, .06); text-decoration: none; }
.ntf-bell.has-new { color: var(--primary); }
.ntf-dot {
    position: absolute; top: -1px; right: -2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--card);
}
.ntf-badge {
    display: inline-block;
    min-width: 17px; height: 17px; padding: 0 5px;
    margin-left: 4px;
    border-radius: 9px;
    background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 17px;
    text-align: center;
    vertical-align: 1px;
}

.ntf-list { display: flex; flex-direction: column; }
.ntf-item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    position: relative;
    transition: background .13s;
}
.ntf-item:last-child { border-bottom: 0; }
a.ntf-item:hover { background: var(--primary-light); text-decoration: none; }
.ntf-item.unread { background: #f8fafc; }
.ntf-item.unread .ntf-title { font-weight: 700; }
.ntf-item.lv-danger .ntf-title { color: #b91c1c; }
.ntf-cat {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    background: var(--bg);
}
.ntf-item.lv-warn    .ntf-cat { background: var(--warn-light); color: var(--warn); }
.ntf-item.lv-success .ntf-cat { background: var(--success-light); color: var(--success); }
.ntf-item.lv-danger  .ntf-cat { background: var(--danger-light); color: var(--danger); }
.ntf-item.lv-info    .ntf-cat { background: var(--info-light); color: var(--info); }
.ntf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ntf-title { font-size: 14px; line-height: 1.5; }
.ntf-body  { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.ntf-meta  { font-size: 11.5px; color: var(--text-3); }
.ntf-unread-dot {
    flex: 0 0 auto; align-self: center;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
}
@media (max-width: 640px) {
    .ntf-item { padding: 12px 14px; gap: 9px; }
    .ntf-cat { width: 30px; height: 30px; font-size: 14px; }
}
