/* ============================================
   linyi_ocean — Dark Glassmorphism Theme
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #22d3ee;
    --primary-light: #67e8f9;
    --primary-dark: #0891b2;
    --secondary: #a78bfa;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --bg: #16233c;
    --card-bg: rgba(255,255,255,0.055);
    --card-solid: #1d2c4a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(148,163,184,0.14);
    --radius: 18px;
    --shadow: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.45);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
    --glass-blur: blur(18px) saturate(160%);
}

/* === Base === */
body#index, body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 800px 600px at 12% -5%, rgba(34,211,238,0.13), transparent 60%),
        radial-gradient(ellipse 700px 500px at 88% 12%, rgba(167,139,250,0.13), transparent 60%),
        radial-gradient(ellipse 900px 700px at 50% 110%, rgba(8,145,178,0.11), transparent 60%);
    background-attachment: fixed;
    font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    font-size: 15px;
}
.page-main { max-width: 1400px; margin: 0 auto; padding: 0 20px; flex: 1; width: 100%; }
.page { background: transparent; min-height: 100vh; display: flex; flex-direction: column; }

/* === Glass Card Base === */
.m-card, .m-nav-sidebar, .m-auth-form, .m-form-card, .dept-card, .stat-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* === Page Header === */
.m-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0 22px; border-bottom: none; }
.m-page-header h2 {
    font-size: 26px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 12px;
    background: linear-gradient(120deg, var(--primary-light), var(--primary), var(--secondary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.m-page-header h2::before { content: ''; width: 5px; height: 28px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--secondary)); flex-shrink: 0; }

/* === Modern Card === */
.m-card { border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.m-card-header { padding: 20px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: rgba(255,255,255,0.02); }
.m-card-header h3 {
    font-size: 19px; font-weight: 700; margin: 0;
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap; flex-shrink: 0;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #f8fafc 0%, #a5f3fc 55%, #c4b5fd 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(34,211,238,0.25));
}
.m-card-header h3::before {
    content: ''; width: 5px; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    box-shadow: 0 0 14px rgba(34,211,238,0.55);
    flex-shrink: 0;
}
.m-card-body { padding: 26px; }

/* === Sidebar Navigation === */
.m-nav-sidebar { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.m-nav-sidebar .nav-title { padding: 20px 26px 10px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.m-nav-sidebar .nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 26px; font-size: 15px; color: var(--text-muted); text-decoration: none; transition: all .25s; border-left: 3px solid transparent; }
.m-nav-sidebar .nav-item:hover { background: rgba(34,211,238,0.06); color: var(--primary-light); }
.m-nav-sidebar .nav-item.active { background: linear-gradient(90deg, rgba(34,211,238,0.12), transparent); color: var(--primary-light); font-weight: 600; border-left-color: var(--primary); }
.m-nav-sidebar .nav-item i { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* === Modern Table === */
.m-table { width: 100%; font-size: 15px; table-layout: fixed; border-collapse: collapse; }
.m-table thead th {
    background: linear-gradient(180deg, #1f3153, #1a2947);
    color: var(--primary-light);
    font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(34,211,238,0.28);
    text-align: left;
    white-space: nowrap;
}
.m-table tbody td { padding: 13px 16px; border-bottom: 1px solid rgba(148,163,184,0.08); color: var(--text); vertical-align: middle; }
.m-table tbody td.text-auto-hidden { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-table tbody tr:last-child td { border-bottom: none; }
.m-table tbody tr:hover td { background: rgba(34,211,238,0.05); }
.m-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.04); }
.m-table tbody tr:nth-child(even):hover td { background: rgba(34,211,238,0.05); }
.m-table a { color: var(--text); text-decoration: none; transition: color .2s; }
.m-table a:hover { color: var(--primary-light); }
.m-table .td-icon { width: 36px; text-align: center; color: var(--primary); font-size: 16px; }
.m-table .td-date { width: 100px; white-space: nowrap; color: var(--text-muted); font-size: 13px; }

/* Override legacy style.css .tablebox rules (white th bg) and dashboard borders */
.tablebox table tr th { background-color: transparent; }
.tablebox table.m-table { border: none !important; }
.tablebox table.m-table th,
.tablebox table.m-table td { border-left: none !important; border-right: none !important; border-top: none !important; }
/* Remove all divider lines inside the scrolling project table (rows already have zebra shading) */
.tablebox .m-table tbody td { border: none !important; }
.tablebox .tbl-body .m-table thead th { border-bottom: none; }
/* Skeleton loading rows shown until ajax data arrives */
.tbl-skel .tbl-skel-bar {
    height: 14px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(148,163,184,0.10) 25%, rgba(148,163,184,0.24) 50%, rgba(148,163,184,0.10) 75%);
    background-size: 200% 100%;
    animation: tblShimmer 1.4s ease infinite;
}
@keyframes tblShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.tbl-skel-bar.w50 { width: 50%; }
.tbl-skel-bar.w60 { width: 60%; }
.tbl-skel-bar.w65 { width: 65%; }
.tbl-skel-bar.w70 { width: 70%; }
.tbl-skel-bar.w75 { width: 75%; }
.tbl-skel-bar.w80 { width: 80%; }
.tbl-skel-bar.w85 { width: 85%; }
.tbl-skel-bar.w90 { width: 90%; }
.tablebox .tbl-header table.m-table thead th {
    background: linear-gradient(180deg, #1f3153, #1a2947);
    color: var(--primary-light);
    font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(34,211,238,0.28) !important;
}

/* === c3 chart readability on dark theme === */
.c3 svg { font: 13px "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.c3 text { fill: #cbd5e1 !important; font-size: 13px !important; }
.c3-legend-item text { fill: #e2e8f0 !important; font-size: 13px !important; font-weight: 500 !important; }
.c3-legend-item { opacity: 0.95; }
.c3-axis-x .tick text, .c3-axis-y .tick text { fill: #94a3b8 !important; font-size: 12px !important; }
.c3-axis path, .c3-axis line { stroke: rgba(148,163,184,0.25); }
.c3-grid line { stroke: rgba(148,163,184,0.12); }
.c3-tooltip { box-shadow: 0 8px 24px rgba(2,8,20,0.5); opacity: 1; }
.c3-tooltip th { background: #1d2c4a; color: #e2e8f0; font-size: 12px; }
.c3-tooltip td { background: rgba(17,26,46,0.96); color: #e2e8f0; border-color: rgba(148,163,184,0.15); font-size: 13px; }
.c3-tooltip .name { color: #94a3b8; }
.text-auto-hidden { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* === Search Bar === */
.m-page-header.search-header { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
.m-page-header.search-header h2 { margin: 0; }
.m-search-bar {
    display: flex; align-items: stretch;
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    background: rgba(255,255,255,0.04); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    transition: border-color .2s, box-shadow .2s;
}
.m-search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(34,211,238,0.12), 0 0 24px rgba(34,211,238,0.15); }
.m-search-bar input[type="search"],
.m-search-bar input[type="text"],
.m-search-bar select { flex: 1; min-width: 0; height: 52px; padding: 0 24px; border: none; border-radius: 0; font-size: 15px; color: var(--text); background: transparent; outline: none; }
.m-search-bar input::placeholder { color: #64748b; }
.m-search-bar input:focus { box-shadow: none; }
.m-search-bar select option { background: var(--card-solid); color: var(--text); }
.m-search-bar .btn-search { height: auto; padding: 0 34px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #04121a; border: none; border-radius: 0; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.m-search-bar .btn-search:hover { filter: brightness(1.15); }
.m-search-bar .btn-search i { font-size: 16px; }

/* === Pagination === */
.m-pagination { padding: 26px 0 8px; text-align: center; }
.m-pagination .digg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.m-pagination .digg a,
.m-pagination .digg span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; text-decoration: none; transition: all .25s ease; border: 1px solid var(--border); color: var(--text-muted); background: rgba(255,255,255,0.04); font-weight: 500; line-height: 1; }
.m-pagination .digg > span:first-child { font-size: 13px; color: var(--text-muted); padding: 5px 14px 5px 4px; margin-right: 10px; min-width: auto; border: none; border-right: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; white-space: nowrap; }
.m-pagination .digg a:hover { background: rgba(34,211,238,0.12); color: var(--primary-light); border-color: rgba(34,211,238,0.4); box-shadow: 0 0 16px rgba(34,211,238,0.2); transform: translateY(-2px); }
.m-pagination .digg .current,
.m-pagination .digg span.current { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #04121a; border-color: transparent; font-weight: 700; box-shadow: 0 4px 20px rgba(34,211,238,0.35); transform: scale(1.06); }
.m-pagination .digg .disabled { color: #475569; cursor: not-allowed; background: rgba(255,255,255,0.02); border-color: rgba(148,163,184,0.08); }
.m-pagination .digg span:not(.current):not(.disabled):not(:first-child) { min-width: auto; padding: 0 4px; border: none; background: transparent; color: #64748b; letter-spacing: 2px; font-size: 14px; }

/* === Article Meta === */
.m-article-meta { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px 26px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.m-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.m-article-meta i { font-size: 14px; color: var(--primary); }

/* === Article Content === */
/* Rich-text content rendered as a light "paper" panel so editor-authored
   inline styles (dark fonts, colored highlights, tables) stay readable on dark theme */
.m-card .entry {
    margin: 26px;
    padding: 34px 40px;
    line-height: 1.9;
    font-size: 15px;
    color: #334155;
    background: linear-gradient(180deg, #ffffff, #f6f8fc);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.22), 0 12px 32px rgba(2,8,20,0.4);
    overflow-x: auto;
}
.m-card .entry p { margin: 0 0 12px; }
.m-card .entry img { max-width: 100%; height: auto; border-radius: 8px; }
.m-card .entry a { color: #1d4ed8; text-decoration: underline; word-break: break-all; }
.m-card .entry table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.m-card .entry table td,
.m-card .entry table th { border: 1px solid #cbd5e1; padding: 10px 14px; color: inherit; }
.m-card .entry hr { border: none; border-top: 1px solid #e2e8f0; margin: 18px 0; }
@media (max-width: 768px) {
    .m-card .entry { margin: 16px; padding: 22px 18px; }
}

/* === Article Summary === */
.m-card .note { padding: 16px 26px; margin: 0; background: rgba(34,211,238,0.06); border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* === Attachment List === */
.m-attach-list { padding: 26px; border-top: 1px solid var(--border); }
.m-attach-list h5 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.m-attach-list h5::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--warning); }
.m-attach-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.m-attach-list li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(255,255,255,0.03); border-radius: 14px; border: 1px solid var(--border); transition: all .25s; }
.m-attach-list li:hover { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.06); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.m-attach-list .icon-box { width: 46px; height: 46px; border-radius: 13px; background: rgba(34,211,238,0.12); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex-shrink: 0; }
.m-attach-list .info { flex: 1; min-width: 0; }
.m-attach-list .info h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-attach-list .info p { font-size: 13px; color: var(--text-muted); margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.m-attach-list .link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 22px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #04121a; border-radius: 50px; text-decoration: none; font-size: 13px; font-weight: 700; transition: filter .2s; flex-shrink: 0; cursor: pointer; border: none; }
.m-attach-list .link-btn:hover { filter: brightness(1.15); color: #04121a; }

/* === Prev/Next Navigation === */
.m-prev-next { display: flex; justify-content: space-between; gap: 16px; padding: 20px 26px; border-top: 1px solid var(--border); font-size: 14px; }
.m-prev-next p { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-prev-next a { color: var(--primary-light); text-decoration: none; }
.m-prev-next a:hover { text-decoration: underline; }
.m-prev-next .prev { color: var(--text-muted); }
.m-prev-next .next { color: var(--text-muted); text-align: right; }

/* === Breadcrumb === */
.m-breadcrumb { display: flex; align-items: center; gap: 6px; padding: 16px 0; font-size: 14px; color: var(--text-muted); }
.m-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.m-breadcrumb a:hover { color: var(--primary-light); }
.m-breadcrumb .sep { color: #475569; }

/* === Auth Form === */
.m-auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 40px 20px; }
.m-auth-form { border-radius: 22px; padding: 46px; width: 100%; max-width: 460px; }
.m-auth-form h2 { font-size: 28px; font-weight: 800; text-align: center; margin: 0 0 8px; background: linear-gradient(120deg, var(--primary-light), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.m-auth-form .subtitle { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 34px; }
.m-auth-form .tabs { display: flex; gap: 0; margin-bottom: 34px; border-bottom: 1px solid var(--border); }
.m-auth-form .tabs a { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .25s; }
.m-auth-form .tabs a.selected,
.m-auth-form .tabs a:hover { color: var(--primary-light); border-bottom-color: var(--primary); }

/* === Form Inputs === */
.m-input-group { margin-bottom: 22px; }
.m-input-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.m-input-group input[type="text"],
.m-input-group input[type="password"],
.m-input-group input[type="email"],
.m-input-group input[type="tel"],
.m-input-group input[type="search"],
.m-input-group textarea,
.m-input-group select { width: 100%; height: 48px; padding: 12px 20px; border: 1px solid var(--border); border-radius: 13px; font-size: 15px; color: var(--text); background: rgba(255,255,255,0.04); transition: border-color .2s, box-shadow .2s; outline: none; box-sizing: border-box; }
.m-input-group textarea { height: auto; min-height: 100px; resize: vertical; }
.m-input-group select option { background: var(--card-solid); color: var(--text); }
.m-input-group input:focus,
.m-input-group textarea:focus,
.m-input-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); background: rgba(255,255,255,0.06); }
.m-input-group input::placeholder,
.m-input-group textarea::placeholder { color: #64748b; }

/* === Buttons === */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 34px; border-radius: 13px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .25s; border: none; text-decoration: none; }
.m-btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #04121a; box-shadow: 0 4px 20px rgba(34,211,238,0.25); }
.m-btn-primary:hover { filter: brightness(1.15); color: #04121a; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,211,238,0.4); }
.m-btn-block { width: 100%; }
.m-btn-outline { background: transparent; color: var(--primary-light); border: 1px solid rgba(34,211,238,0.4); }
.m-btn-outline:hover { background: rgba(34,211,238,0.1); color: var(--primary-light); }

/* === Remember & Links Row === */
.m-form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; font-size: 14px; }
.m-form-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-muted); }
.m-form-row a { color: var(--primary-light); text-decoration: none; }
.m-form-row a:hover { text-decoration: underline; }

/* === OAuth Box === */
.m-oauth { text-align: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.m-oauth h4 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 18px; }
.m-oauth a { display: inline-block; margin: 0 6px; }
.m-oauth img { width: 40px; height: 40px; border-radius: 50%; transition: transform .25s; border: 1px solid var(--border); }
.m-oauth img:hover { transform: scale(1.15); }

/* === Smart Wizard Override === */
.m-wizard .sw-theme_dots > ul.step-anchor { border-bottom: 1px solid var(--border); }
.m-wizard .sw-theme_dots > ul.step-anchor > li > a { color: var(--text-muted) !important; }
.m-wizard .sw-theme_dots > ul.step-anchor > li > a.active { color: var(--primary-light) !important; }
.m-wizard .sw-theme_dots > ul.step-anchor > li > a .done { background: var(--success) !important; }
.m-wizard .sw-theme_dots > ul.step-anchor > li > a .key-number { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.m-wizard .sw-theme_dots > ul.step-anchor > li > a.active .key-number { background: var(--primary); color: #04121a; }
.m-wizard .sw-container { padding: 24px 0; }

/* Wizard section title */
.m-wizard { position: relative; }
.m-wizard-title { display: flex; align-items: center; gap: 10px; padding: 20px 6px 0; margin-bottom: 18px; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.m-wizard-title-bar { width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary)); box-shadow: 0 0 10px rgba(34,211,238,0.5); }

/* Wizard progress panel */
.m-wizard #smartwizard { background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px 18px; }

/* Wizard dots alignment enforcement — overrides any stale cached smart_wizard_theme_dots.css */
@media (min-width: 769px) {
    .sw-theme-dots > ul.step-anchor { display: flex !important; flex-wrap: nowrap !important; position: relative !important; }
    .sw-theme-dots > ul.step-anchor > li { flex: 1 1 0 !important; display: flex !important; position: relative !important; }
    .sw-theme-dots > ul.step-anchor > li > a { position: relative !important; display: block !important; width: 100% !important; flex: 1 1 auto !important; align-self: stretch !important; padding: 6px 4px 54px !important; margin: 0 !important; }
    .sw-theme-dots > ul.step-anchor > li > a small { display: block !important; min-height: 1.4em !important; }
    .sw-theme-dots > ul.step-anchor > li > a:before { position: absolute !important; bottom: 12px !important; top: auto !important; left: 50% !important; margin-left: -15px !important; margin-top: 0 !important; width: 30px !important; height: 30px !important; }
    .sw-theme-dots > ul.step-anchor > li > a:after { position: absolute !important; bottom: 20px !important; top: auto !important; left: 50% !important; margin-left: -7px !important; margin-top: 0 !important; width: 14px !important; height: 14px !important; }
    .sw-theme-dots > ul.step-anchor:before { position: absolute !important; bottom: 25px !important; top: auto !important; left: 4% !important; right: 4% !important; height: 4px !important; width: auto !important; }
}

/* Done track segment: colored line leading into completed steps */
.sw-theme-dots > ul.step-anchor > li.done > a::before { box-shadow: inset 0 0 0 2px rgba(34,211,238,0.35); }

/* Labels & dates */
.sw-theme-dots > ul.step-anchor > li > a small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--text-muted); opacity: .75; letter-spacing: .3px; }
.sw-theme-dots > ul.step-anchor > li.done > a { font-weight: 700; }
.sw-theme-dots > ul.step-anchor > li.active > a { font-weight: 700; text-shadow: 0 0 14px rgba(167,139,250,0.55); }

/* Current step pulse animation */
.sw-theme-dots > ul.step-anchor > li.active > a::before { animation: swPulse 2s ease-out infinite; }
@keyframes swPulse {
    0%   { box-shadow: 0 0 0 0 rgba(167,139,250,0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(167,139,250,0); }
    100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); }
}

/* === Project Detail Info === */
.m-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px; padding: 22px 26px; }
.m-info-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 10px; border-left: 2px solid transparent; transition: background .25s, border-color .25s, transform .25s; }
.m-info-item:hover { background: rgba(34,211,238,0.06); border-left-color: var(--primary); transform: translateX(2px); }
.m-info-item .label { font-size: 14px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; min-width: 90px; position: relative; padding-left: 11px; }
.m-info-item .label::before { content: ''; position: absolute; left: 0; top: 50%; margin-top: -3px; width: 5px; height: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); opacity: .7; }
.m-info-item .value { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.5; }

/* === Status Icon === */
.status-icon { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-icon.bg-secondary { background: var(--secondary); }
.status-icon.bg-success { background: var(--success); }
.status-icon.bg-warning { background: var(--warning); }
.status-icon.bg-danger { background: var(--danger); }

/* === Search Results === */
.m-search-results { list-style: none; padding: 0; margin: 0; }
.m-search-results li { padding: 22px 0; border-bottom: 1px solid rgba(148,163,184,0.08); }
.m-search-results li:last-child { border-bottom: none; }
.m-search-results h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.m-search-results h3 a { color: var(--text); text-decoration: none; }
.m-search-results h3 a:hover { color: var(--primary-light); }
.m-search-results .note p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }
.m-search-results .info { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--text-muted); }

/* === Error Page === */
.m-error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; text-align: center; padding: 40px 20px; }
.m-error-page .code { font-size: 110px; font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .5; }
.m-error-page .message { font-size: 20px; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.m-error-page .desc { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

/* === Feedback Form === */
.m-form-card { border-radius: var(--radius); padding: 34px; margin-bottom: 24px; }

/* === Nodata === */
.nodata { text-align: center; padding: 52px 20px; color: var(--text-muted); font-size: 15px; }

/* === Badge modern === */
.badge-modern { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.badge-sgt { background: rgba(34,211,238,0.14); color: var(--primary-light); border: 1px solid rgba(34,211,238,0.3); }
.badge-kc { background: rgba(167,139,250,0.14); color: var(--secondary); border: 1px solid rgba(167,139,250,0.3); }
.badge-sz { background: rgba(52,211,153,0.14); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.3); }
.badge-szkc { background: rgba(251,191,36,0.14); color: #fcd34d; border: 1px solid rgba(251,191,36,0.3); }

/* === Card tabs (from index) === */
.card-tabs { display: flex; flex-wrap: nowrap; gap: 4px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: 12px; border: 1px solid var(--border); margin: 0; }
.card-tabs .nav-item { list-style: none; }
.card-tabs .nav-link { padding: 5px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text-muted); text-decoration: none; transition: all .25s; border: none; }
.card-tabs .nav-link.active, .card-tabs .nav-link:hover { background: rgba(34,211,238,0.12); color: var(--primary-light); box-shadow: 0 0 12px rgba(34,211,238,0.15); }

/* === Override dashboard.css defaults === */
.card { border: none !important; box-shadow: none !important; background: transparent !important; }
.page-header { border-bottom: none !important; }
.page-title { font-size: 26px; font-weight: 800; }

/* === Bootstrap Modal (dark glass) === */
.modal-content { background: rgba(17,26,46,0.96) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid rgba(34,211,238,0.25) !important; color: var(--text) !important; }
.modal-header { border-bottom-color: var(--border) !important; }
.modal-header h3, .modal-title { color: var(--text) !important; }
.modal-body { color: var(--text) !important; }
.modal-body a { color: var(--primary-light); }
.modal-footer { border-top-color: var(--border) !important; }
.modal-footer .btn-primary, .modal-footer .btn { background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important; border: none !important; color: #04121a !important; font-weight: 700; border-radius: 10px !important; }
.modal-backdrop { background: #04070f; }
.modal-backdrop.show { opacity: .7; }
.close { color: var(--text-muted) !important; text-shadow: none; }

/* === Index year select (dark) === */
#year { background: rgba(255,255,255,0.05) !important; color: var(--text) !important; border-color: var(--border) !important; }
#year option { background: var(--card-solid); color: var(--text); }

/* === Index: Department Grid === */
/* auto-fit：入口数量不固定时，空列轨道自动收缩，卡片等分撑满整行，不残留右侧空白 */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 38px 0 30px; position: relative; z-index: 10; }
.dept-card { border-radius: var(--radius); padding: 28px 14px; text-align: center; transition: all .3s ease; cursor: pointer; position: relative; overflow: hidden; }
.dept-card::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--primary),var(--secondary)); opacity:0; transition:opacity .3s; box-shadow: 0 0 16px rgba(34,211,238,0.6); }
.dept-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), 0 0 32px rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.35); }
.dept-card:hover::after { opacity:1; }
.dept-card .dept-icon { width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 23px; transition: transform .3s; }
.dept-card:hover .dept-icon { transform: scale(1.12); }
/* Original department images (shared /images assets) — light disc so transparent/dark icons stay visible */
.dept-card .dept-img {
    width: 64px; height: 64px; box-sizing: border-box;
    padding: 7px;
    background: linear-gradient(180deg, #ffffff, #e9eff8);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(2,8,20,0.45), inset 0 0 0 1px rgba(148,163,184,0.3);
    object-fit: contain;
    margin: 0 auto 14px; display: block;
    transition: transform .3s;
}
.dept-card:hover .dept-img { transform: scale(1.12); }
.dept-card h5 { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.dept-card small { font-size: 12px; color: var(--text-muted); }
.dept-card a { color: inherit; text-decoration: none; }
.icon-bg-1 { background: rgba(34,211,238,0.14); color: var(--primary-light); }
.icon-bg-2 { background: rgba(96,165,250,0.14); color: #93c5fd; }
.icon-bg-3 { background: rgba(52,211,153,0.14); color: #6ee7b7; }
.icon-bg-4 { background: rgba(251,191,36,0.14); color: #fcd34d; }
.icon-bg-5 { background: rgba(248,113,113,0.14); color: #fca5a5; }
.icon-bg-6 { background: rgba(56,189,248,0.14); color: #7dd3fc; }
.icon-bg-7 { background: rgba(74,222,128,0.14); color: #86efac; }
.icon-bg-8 { background: rgba(192,132,252,0.14); color: #d8b4fe; }
.icon-bg-9 { background: rgba(251,146,60,0.14); color: #fdba74; }

/* === Index: Notice Marquee === */
.notice-bar { background: linear-gradient(90deg, rgba(34,211,238,0.08), rgba(167,139,250,0.06)); border: 1px solid rgba(34,211,238,0.2); border-radius: var(--radius); padding: 15px 26px; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.notice-bar .icon { font-size: 19px; color: var(--primary); flex-shrink: 0; }
.notice-bar a { color: var(--primary-light); text-decoration: none; font-size: 15px; }
.notice-bar a:hover { color: #fff; }

/* === Index: Stat Cards === */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { border-radius: var(--radius); padding: 26px; display: flex; align-items: center; gap: 20px; transition: all .25s; position: relative; overflow: hidden; }
.stat-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:linear-gradient(180deg,var(--primary),var(--secondary)); border-radius:4px 0 0 4px; box-shadow: 0 0 14px rgba(34,211,238,0.5); }
.stat-card:hover { box-shadow: var(--shadow-md), 0 0 28px rgba(34,211,238,0.1); transform: translateY(-3px); }
.stat-icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0; }
.stat-card .stat-num { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -.5px; }
.stat-card .stat-label { font-size: 15px; color: var(--text-muted); margin-top: 5px; }

/* === Index: Scroll Table === */
.tablebox { height: 500px; overflow: hidden; position: relative; }
.tbl-header { width: 100%; position: absolute; top: -2px; left: 0; z-index: 2; }
.tbl-body { width: 100%; position: absolute; top: 0; left: 0; }

/* === Index: Expert Scroll === */
#userlist { position: relative; }

/* === Index: Footer link === */
.more-link { font-size: 14px; color: var(--primary-light); text-decoration: none; font-weight: 600; transition: all .2s; }
.more-link:hover { color: #fff; text-decoration: none; text-shadow: 0 0 12px rgba(34,211,238,0.6); }

/* === Index: Ad cards === */
/* Solid light surface so transparent ad images still look clean */
.ad-modern { border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #ffffff, #f3f6fb); border: 1px solid rgba(148,163,184,0.35); box-shadow: 0 10px 26px rgba(2,8,20,0.35); height: 100px; }
.ad-modern a { display: flex; align-items: center; justify-content: center; height: 100%; }
/* Ad slots emit fixed width/height attrs; fit the image inside the equal-height card without cropping */
.ad-modern img { max-width: 100%; width: auto; height: 100%; object-fit: contain; display: block; margin: 0 auto; }
.ad-modern ul.advert { list-style: none; margin: 0; padding: 12px 18px; }
.ad-modern ul.advert li a { color: #334155; font-size: 14px; display: block; min-height: 0; }

/* === Progress bar === */
.progress-modern { height: 8px; background: rgba(255,255,255,0.06); border-radius: 50px; overflow: hidden; }
.progress-modern .bar { height: 100%; border-radius: 50px; transition: width .5s ease; box-shadow: 0 0 10px currentColor; }

/* === Right Sidebar Nav === */
.right_nav { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.right_nav li { position: relative; }
.right_nav li .iconBox { width: 54px; padding: 11px 0; background: linear-gradient(135deg, rgba(34,211,238,0.9), rgba(8,145,178,0.9)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 15px 0 0 15px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: all .25s; box-shadow: -2px 2px 16px rgba(0,0,0,0.4); border: 1px solid rgba(34,211,238,0.3); border-right: none; }
.right_nav li .iconBox:hover { width: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: -4px 2px 24px rgba(34,211,238,0.35); }
.right_nav li .iconBox img { width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: .95; }
.right_nav li .iconBox h4 { color: #fff; font-size: 11px; font-weight: 700; margin: 0; text-align: center; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 3px rgba(2,8,20,0.45); }
.right_nav li .iconBox a { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.right_nav li .hideBox { display: none; position: absolute; right: 64px; top: 50%; transform: translateY(-50%); z-index: 1000; }
.right_nav li:hover .hideBox { display: block; animation: rnFadeIn .2s ease; }
@keyframes rnFadeIn { from { opacity:0; transform: translateY(-50%) translateX(8px); } to { opacity:1; transform: translateY(-50%) translateX(0); } }
.right_nav li .hideBox .hb { background: rgba(17,26,46,0.92); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid rgba(34,211,238,0.25); min-width: 260px; max-height: 400px; overflow: auto; }
.right_nav li .hideBox .hb h5 { font-size: 15px; font-weight: 700; color: var(--primary-light); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(34,211,238,0.2); }
.right_nav li .hideBox .hb p { font-size: 15px; font-weight: 600; color: var(--text); margin: 6px 0; }
.right_nav li .hideBox .hb a { color: var(--primary-light); text-decoration: none; }
.right_nav li .hideBox .hb a:hover { text-decoration: underline; }
.right_nav li .hideBox .hb img { max-width: 160px; border-radius: 12px; margin-top: 8px; }
.right_nav li .hideBox .hb .row { margin: 0; padding: 6px 0; border-bottom: 1px solid rgba(148,163,184,0.08); }
.right_nav li .hideBox .hb .row:last-child { border-bottom: none; }
.right_nav li .hideBox .hb .tag { display: inline-block; background: rgba(52,211,153,0.14); color: #6ee7b7; padding: 2px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; border: 1px solid rgba(52,211,153,0.3); }
.right_nav li .hideBox .hb .fa { color: var(--primary-light); margin-right: 4px; }
.right_nav .iconBox.top { background: linear-gradient(135deg, rgba(100,116,139,0.9), rgba(71,85,105,0.9)); border-color: rgba(148,163,184,0.3); }
.right_nav .iconBox.top:hover { background: linear-gradient(135deg, #64748b, #475569); box-shadow: -4px 2px 24px rgba(100,116,139,0.35); }
.right_nav .iconBox.top h4 { color: #fff; }

/* === AI Chat === */
.aic-chat-container {
  position:absolute;
  width:620px;max-width:95vw;height:680px;max-height:92vh;
  background:rgba(15,23,42,0.95);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  border:1px solid rgba(34,211,238,0.25);border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(34,211,238,0.08);
  display:flex;flex-direction:column;overflow:hidden;
  font-family:"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
.aic-float-avatar {
  position:fixed;right:auto;top:50%;z-index:9999;
  width:56px;height:56px;border-radius:50%;
  background:#0f172a;overflow:hidden;
  cursor:grab;box-shadow:0 4px 24px rgba(34,211,238,0.5);
  transition:box-shadow .2s,transform .2s;user-select:none;touch-action:none;
  border:2px solid rgba(34,211,238,0.5);
}
.aic-float-avatar img { width:100%;height:100%;object-fit:cover;display:block; }
.aic-float-avatar:hover { box-shadow:0 6px 32px rgba(34,211,238,0.7);transform:scale(1.08); }
.aic-float-avatar.dragging { cursor:grabbing;transition:none; }
.aic-float-avatar::after {
  content:'';position:absolute;bottom:0;right:0;
  width:14px;height:14px;background:#34d399;border-radius:50%;
  border:2px solid #0f172a;animation:aicPulse 2s infinite;
}
.aic-chat-header {
  background:linear-gradient(135deg,rgba(8,145,178,0.9),rgba(34,211,238,0.7));
  color:#04121a;padding:16px 20px;display:flex;align-items:center;gap:12px;flex-shrink:0;
  cursor:move;border-bottom:1px solid rgba(34,211,238,0.3);
}
.aic-avatar {
  width:42px;height:42px;border-radius:50%;
  background:rgba(4,18,26,0.25);display:flex;align-items:center;justify-content:center;
  font-size:20px;flex-shrink:0;border:2px solid rgba(4,18,26,0.3);
}
.aic-header-info { flex:1; }
.aic-header-info h1 { font-size:16px;font-weight:700;margin:0; }
.aic-status { font-size:12px;opacity:.85;margin-top:2px;display:flex;align-items:center;gap:5px; }
.aic-status-dot { width:7px;height:7px;background:#04121a;border-radius:50%;animation:aicPulse 2s infinite; }
@keyframes aicPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.aic-new-chat,.aic-close {
  background:rgba(4,18,26,0.2);border:1px solid rgba(4,18,26,0.3);
  color:#04121a;width:34px;height:34px;border-radius:12px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:background .2s;
}
.aic-new-chat:hover,.aic-close:hover { background:rgba(4,18,26,0.35); }
.aic-mode-selector { position:relative; }
.aic-mode-btn {
  background:rgba(4,18,26,0.2);border:1px solid rgba(4,18,26,0.3);
  color:#04121a;padding:5px 12px;border-radius:20px;font-size:12px;cursor:pointer;
  display:flex;align-items:center;gap:5px;transition:.2s;font-family:inherit;font-weight:600;
}
.aic-mode-btn:hover { background:rgba(4,18,26,0.35); }
.aic-mode-dropdown {
  position:absolute;top:calc(100% + 8px);right:0;background:rgba(17,26,46,0.97);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  border-radius:14px;box-shadow:var(--shadow-lg);border:1px solid rgba(34,211,238,0.25);
  min-width:240px;z-index:100;display:none;overflow:hidden;
}
.aic-mode-dropdown.show { display:block;animation:aicFadeIn .15s ease; }
@keyframes aicFadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.aic-mode-option { padding:10px 14px;cursor:pointer;transition:.2s;display:flex;flex-direction:column;gap:2px; }
.aic-mode-option:hover { background:rgba(34,211,238,0.08); }
.aic-mode-option.active { background:rgba(34,211,238,0.14); }
.aic-mode-name { font-size:13px;font-weight:600;color:var(--text); }
.aic-mode-option.active .aic-mode-name { color:var(--primary-light); }
.aic-mode-desc { font-size:11px;color:var(--text-muted); }
.aic-messages {
  flex:1;overflow-y:auto;padding:20px 16px;display:flex;flex-direction:column;gap:14px;
  background:rgba(255,255,255,0.015);scroll-behavior:smooth;
}
.aic-messages::-webkit-scrollbar { width:5px; }
.aic-messages::-webkit-scrollbar-track { background:transparent; }
.aic-messages::-webkit-scrollbar-thumb { background:#334155;border-radius:10px; }
.aic-welcome {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  flex:1;text-align:center;padding:30px 20px;gap:14px;
}
.aic-welcome-icon {
  width:64px;height:64px;background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  border-radius:20px;display:flex;align-items:center;justify-content:center;
  font-size:30px;color:#04121a;box-shadow:0 10px 32px rgba(34,211,238,0.35);
}
.aic-welcome h2 { font-size:18px;color:var(--text);font-weight:700;margin:0; }
.aic-welcome p { font-size:13px;color:var(--text-muted);line-height:1.6;max-width:340px;margin:0; }
.aic-quick-actions { display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:6px; }
.aic-quick-btn {
  padding:8px 16px;background:rgba(34,211,238,0.1);color:var(--primary-light);border:1px solid rgba(34,211,238,0.3);
  border-radius:20px;font-size:13px;cursor:pointer;transition:.2s;font-family:inherit;
}
.aic-quick-btn:hover { background:var(--primary);color:#04121a;border-color:var(--primary);transform:translateY(-1px); }
.aic-msg { display:flex;gap:10px;max-width:88%;animation:aicMsgIn .3s ease; }
.aic-msg.user { align-self:flex-end;flex-direction:row-reverse; }
@keyframes aicMsgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.aic-msg-avatar {
  width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;
  align-items:center;justify-content:center;font-size:13px;margin-top:2px;
}
.aic-msg.bot .aic-msg-avatar { background:linear-gradient(135deg,var(--primary-dark),var(--primary));color:#04121a; }
.aic-msg.user .aic-msg-avatar { background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff; }
.aic-msg-body { display:flex;flex-direction:column;gap:5px; }
.aic-bubble { padding:12px 16px;border-radius:16px;font-size:14px;line-height:1.7;word-break:break-word; }
.aic-msg.user .aic-bubble { background:linear-gradient(135deg,var(--primary-dark),var(--primary));color:#04121a;border-bottom-right-radius:4px; }
.aic-msg.bot .aic-bubble { background:rgba(255,255,255,0.06);color:var(--text);border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,0.3);border:1px solid var(--border); }
.aic-msg-time { font-size:11px;color:#64748b;padding:0 4px; }
.aic-msg.user .aic-msg-time { text-align:right; }
.aic-bubble p { margin:0 0 6px; }
.aic-bubble p:last-child { margin-bottom:0; }
.aic-bubble strong { font-weight:700; }
.aic-bubble sup.aic-ref-link {
  display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;background:rgba(34,211,238,0.18);color:var(--primary-light);
  border-radius:3px;font-size:9px;font-weight:700;vertical-align:super;margin-left:1px;cursor:pointer;
}
.aic-typing { display:none;align-items:center;gap:10px;padding:0 16px 4px; }
.aic-typing.show { display:flex; }
.aic-typing-avatar {
  width:32px;height:32px;background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  color:#04121a;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;
}
.aic-typing-dots {
  display:flex;gap:4px;padding:12px 16px;background:rgba(255,255,255,0.06);
  border-radius:16px;border-bottom-left-radius:4px;
  box-shadow:0 1px 4px rgba(0,0,0,0.3);border:1px solid var(--border);
}
.aic-typing-dots span {
  width:7px;height:7px;background:#64748b;border-radius:50%;animation:aicBounce 1.4s infinite;
}
.aic-typing-dots span:nth-child(2) { animation-delay:.2s; }
.aic-typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes aicBounce { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-6px);opacity:1} }
.aic-input-area { padding:14px 16px;background:rgba(255,255,255,0.02);border-top:1px solid var(--border);flex-shrink:0; }
.aic-input-wrapper {
  display:flex;align-items:flex-end;gap:10px;background:rgba(255,255,255,0.05);
  border-radius:16px;padding:8px 8px 8px 16px;border:2px solid transparent;transition:.2s;
}
.aic-input-wrapper:focus-within { border-color:var(--primary);background:rgba(255,255,255,0.07);box-shadow:0 0 0 3px rgba(34,211,238,0.1); }
.aic-input-wrapper textarea {
  flex:1;border:none;background:transparent;font-size:14px;line-height:1.5;
  resize:none;outline:none;color:var(--text);font-family:inherit;max-height:100px;min-height:22px;padding:3px 0;
}
.aic-input-wrapper textarea::placeholder { color:#64748b; }
.aic-send-btn {
  width:38px;height:38px;border-radius:14px;border:none;
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));color:#04121a;cursor:pointer;display:flex;
  align-items:center;justify-content:center;flex-shrink:0;transition:.2s;
}
.aic-send-btn:hover { filter:brightness(1.15);transform:scale(1.05); }
.aic-send-btn:active { transform:scale(.95); }
.aic-send-btn:disabled { background:#334155;color:#64748b;cursor:not-allowed;transform:none; }
.aic-send-btn svg { width:18px;height:18px; }
.aic-input-hint { text-align:center;font-size:12px;font-weight:800;color:var(--danger);margin-top:7px; }
.aic-bubble.error { background:rgba(248,113,113,0.12) !important;border-color:rgba(248,113,113,0.4) !important;color:#fca5a5 !important; }

/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp .6s ease forwards; }

/* === Responsive === */
@media (max-width: 768px) {
    .m-page-header { flex-direction: column; align-items: flex-start; }
    .m-search-bar .btn-search { padding: 0 20px; font-size: 14px; }
    .m-info-grid { grid-template-columns: 1fr; }
    .m-auth-form { padding: 30px; }
    .m-prev-next { flex-direction: column; gap: 8px; }
    .m-prev-next .next { text-align: left; }
    .m-table { font-size: 13px; }
    .m-table td, .m-table th { padding: 8px 10px; }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .right_nav { display: none; }
    .aic-chat-container { width:100% !important;max-width:100% !important;height:100% !important;max-height:100% !important;border-radius:0 !important; }
    .aic-msg { max-width:92%; }
    .aic-float-avatar { width:48px;height:48px; }
}
