* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; font-family: Arial, "Microsoft YaHei", Helvetica, sans-serif; background: #333; color: #334155; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
.height-wrapper { min-height: 100vh; }
#header-toolbar { height: 46px; border-top: 5px solid #000; border-bottom: 1px solid #585858; background: #2d2d2d; }
#header-toolbar .contained { height: 100%; max-width: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
#header-toolbar h1 { margin: 0; color: #f5f5f5; font-size: 16px; font-weight: 700; }
.pull-right { margin-left: auto; }
.btn-toolbar { display: flex; gap: 8px; }
.btn { min-height: 30px; margin: 0; padding: 5px 12px; border: 1px solid #cfd9e6; border-radius: 7px; background: #fff; color: #344054; font-size: 12px; font-weight: 600; line-height: 18px; box-shadow: 0 1px 1px rgba(16,24,40,.03); }
.btn:hover { background: #f8fafc; border-color: #b9c6d6; color: #1f2937; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(31,41,55,.10); }
.btn-primary { background: linear-gradient(180deg, #3478f6, #2563eb); border-color: #1d4ed8; color: #fff; }
.btn-info { background: linear-gradient(180deg, #14b8a6, #0f766e); border-color: #0f766e; color: #fff; }
.btn-success { background: linear-gradient(180deg, #22c55e, #16a34a); border-color: #15803d; color: #fff; }
.btn-danger { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.btn-inverse { border-color: #000; background: linear-gradient(#484848, #2d2d2d); color: #fff; }
.btn-small { min-height: 28px; padding: 4px 9px; font-size: 12px; }
#main { padding-left: 0; }
#main .contained { max-width: none; width: 100%; display: flex; padding-left: 12px; padding-right: 16px; align-items: flex-start; }
#main .contained > aside { width: 15%; min-width: 120px; padding: 0 12px; margin-top: 16px; display: flex; flex-direction: column; box-sizing: border-box; }
.aside-nav-home, .aside-nav-item { display: block; margin-bottom: 4px; padding: 9px 13px; border-radius: 7px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 500; cursor: pointer; }
.aside-nav-home:hover, .aside-nav-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.aside-nav-home.active, .aside-nav-item.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 rgba(99,179,237,.95); }
.aside-nav-home.has-badge { position: relative; }
.aside-nav-badge { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d91f2a; color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.job-title-aside { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 2px; padding: 14px 13px 6px; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 700; cursor: pointer; }
.toggle-icon { font-size: 12px; opacity: .7; }
.aside-job-list { list-style: none; margin: 0; padding: 0; }
.divider { height: 1px; margin: 12px 13px; background: rgba(255,255,255,.14); }
.aside-version { padding: 0 13px; color: rgba(255,255,255,.42); font-size: 12px; }
.page-content-wrap { display: flex; flex: 1; min-width: 0; margin-top: 16px; position: relative; background: transparent; align-items: flex-start; }
#page-content { flex: 1; min-width: 0; padding: 0 20px 32px 0; background: transparent; color: #334155; }
#page-content h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 4px 0 2px; color: #172033; font-size: 23px; font-weight: 650; line-height: 1.35; }
#page-content h1::before { content: ""; display: inline-block; width: 10px; height: 28px; border-radius: 999px; background: linear-gradient(180deg, #2563eb, #14b8a6); flex: 0 0 auto; }
.page-desc { max-width: 980px; margin: -2px 0 18px; color: #64748b; line-height: 1.7; }
.page-header-actions, .table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; padding: 12px; background: rgba(255,255,255,.76); border: 1px solid #e5edf6; border-radius: 8px; box-shadow: 0 8px 22px rgba(31,41,55,.05); }
.jarviswidget, .stats-cards .span4, .home-panel, .home-kpi-card { background: #fff; border: 1px solid #dbe7f4; border-radius: 8px; box-shadow: 0 10px 28px rgba(31,41,55,.08); }
.jarviswidget { margin-bottom: 18px; overflow: hidden; }
.jarviswidget header { min-height: 46px; padding: 0 18px; background: linear-gradient(180deg, #fff, #f8fafd); border-bottom: 1px solid #dbe7f4; display: flex; align-items: center; justify-content: space-between; }
.jarviswidget header h2 { margin: 0; color: #172033; font-size: 15px; font-weight: 700; }
.table-scroll-hint { color: #64748b; font-size: 12px; font-weight: 500; }
.inner-spacer { padding: 16px 18px; overflow-x: auto; }
.table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; border: 1px solid #dbe7f4; border-radius: 8px; overflow: hidden; background: #fff; font-size: 13px; }
.table th { background: #f1f5f9; color: #475569; font-size: 13px; font-weight: 700; border-bottom: 1px solid #e2e8f0; padding: 11px 12px; text-align: left; }
.table td { border-bottom: 1px solid #edf2f7; padding: 11px 12px; vertical-align: middle; white-space: nowrap; }
.table td .ledger-status-pill,
.table td .ledger-source-tag {
  white-space: nowrap;
}
.business-table { min-width: 980px; }
.contracts-table { min-width: 980px; }
.history-ledger-table { min-width: 920px; }
.table-striped tbody > tr:nth-child(odd) > td { background: #fbfdff; }
.table-hover tbody tr:hover > td, .table tbody tr:hover > td { background: #f4f8ff; }
.table-actions { display: flex; gap: 6px; }
.table-pagination { min-width: 900px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid #dbe7f4; border-radius: 8px; background: #f8fbff; color: #475569; font-size: 12px; }
.pagination-meta { font-weight: 700; color: #334155; }
.pagination-actions { display: flex; align-items: center; gap: 8px; }
.pagination-actions label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #64748b; font-weight: 700; }
.pagination-size { min-height: 28px; padding: 3px 8px; border: 1px solid #cfd9e6; border-radius: 7px; background: #fff; color: #334155; font-size: 12px; }
.pagination-page { min-width: 56px; text-align: center; color: #0f172a; font-weight: 800; }
.table-pagination .btn[disabled] { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.stats-cards { display: flex; flex-wrap: nowrap; gap: 14px; margin: 4px 0 18px; }
.stats-cards .span4 { flex: 1; padding: 16px 18px; text-align: center; }
.stat-num { color: #0f172a; font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat-label { margin-top: 7px; color: #64748b; font-size: 13px; }
.panel-view { background: #fff; border-radius: 0; padding: 4px 22px 28px; min-height: calc(100vh - 86px); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.home-workbench { padding-bottom: 24px; }
.home-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 18px 20px; border: 1px solid #dbe7f4; border-radius: 8px; background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: 0 10px 28px rgba(31,41,55,.06); }
.home-hero h1 { margin-bottom: 6px !important; }
.home-hero-desc { margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.home-ai-health { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dbe7f4; border-radius: 8px; background: #fff; color: #475569; font-size: 12px; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.home-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.home-kpi-card { padding: 18px; }
.kpi-label { color: #64748b; font-size: 13px; font-weight: 700; }
.kpi-value { margin-top: 10px; color: #0f172a; font-size: 28px; font-weight: 800; }
.kpi-value small { margin-left: 4px; color: #64748b; font-size: 13px; }
.kpi-note { margin-top: 8px; color: #64748b; font-size: 12px; }
.kpi-blue { border-top: 3px solid #2563eb; }
.kpi-green { border-top: 3px solid #16a34a; }
.kpi-red { border-top: 3px solid #e11d48; }
.kpi-teal { border-top: 3px solid #14b8a6; }
.home-main-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; }
.home-panel { padding: 18px; }
.home-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.home-panel-head h2 { margin: 0 0 5px; color: #172033; font-size: 16px; font-weight: 760; }
.home-panel-head p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.home-panel-badge { padding: 4px 8px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 12px; font-weight: 700; white-space: nowrap; }
.funnel-step { margin-bottom: 13px; }
.funnel-top { display: flex; justify-content: space-between; color: #475569; font-size: 13px; margin-bottom: 7px; }
.funnel-top b { color: #0f172a; }
.funnel-bar { height: 8px; border-radius: 999px; background: #e5edf6; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #14b8a6); transition: width .25s ease; }
.home-action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-action-item { padding: 14px; border-radius: 8px; border: 1px solid #e5edf6; cursor: default; }
.home-action-item b, .home-action-item span { display: block; }
.home-action-item b { color: #0f172a; font-size: 16px; margin-bottom: 6px; }
.home-action-item span { color: #64748b; font-size: 12px; }
.home-action-item.info { background: #eff6ff; }
.home-action-item.ok { background: #ecfdf5; }
.home-action-item.warn { background: #fffbeb; }
.home-action-item.danger { background: #fff1f2; }
.deadline-alert-card { margin-bottom: 16px; padding: 14px 16px; border: 1px solid #fecdd3; border-radius: 10px; background: #fff1f2; color: #9f1239; }
.deadline-alert-card strong { display: block; font-size: 14px; font-weight: 800; }
.deadline-alert-card p { margin: 6px 0 0; color: #be123c; font-size: 13px; line-height: 1.6; }
#reportDeadlineNotice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#reportDeadlineNotice .report-leave-entry { flex-shrink: 0; background: #fff; color: #1d4ed8; border-color: #bfdbfe; }
.report-other-work-hint { margin: 0 0 10px; color: #64748b; font-size: 12px; line-height: 1.7; }
.report-leave-label { display: block; margin-top: 14px; color: #475569; font-size: 13px; }
#reportLeaveReason { min-height: 100px; margin-top: 6px; }
.report-leave-error { margin: 8px 0 0; color: #be123c; font-size: 13px; }
#reportLeaveModal button:disabled { opacity: .6; cursor: wait; }
.message-summary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.message-summary-card { padding: 16px 18px; border: 1px solid #dbe7f4; border-radius: 8px; background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: 0 10px 28px rgba(31,41,55,.06); }
.message-summary-card span { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.message-summary-card b { display: block; margin-top: 8px; color: #0f172a; font-size: 22px; line-height: 1.2; word-break: break-all; }
.goal-summary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.goal-summary-card { padding: 16px 18px; border: 1px solid #dbe7f4; border-radius: 8px; background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: 0 10px 28px rgba(31,41,55,.06); }
.goal-summary-card span { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.goal-summary-card b { display: block; margin-top: 8px; color: #0f172a; font-size: 22px; line-height: 1.2; }
.goal-list { display: grid; gap: 12px; }
.goal-item { padding: 16px; border: 1px solid #dbe7f4; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(31,41,55,.05); }
.goal-item.completed { border-left: 4px solid #16a34a; }
.goal-item.active { border-left: 4px solid #2563eb; }
.goal-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.goal-item-head h3 { margin: 4px 0 0; color: #172033; font-size: 16px; line-height: 1.45; }
.goal-period { color: #64748b; font-size: 12px; font-weight: 700; }
.goal-status { padding: 4px 9px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 12px; font-weight: 700; white-space: nowrap; }
.goal-item.completed .goal-status { background: #ecfdf5; color: #15803d; }
.goal-progress-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #475569; font-size: 13px; }
.goal-progress-line b { color: #0f172a; }
.goal-progress-bar { height: 9px; margin-top: 9px; border-radius: 999px; background: #e5edf6; overflow: hidden; }
.goal-progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #14b8a6); }
.goal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: #64748b; font-size: 12px; }
.message-list { display: grid; gap: 12px; }
.message-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px; border: 1px solid #dbe7f4; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(31,41,55,.05); }
.message-item.unread { border-left: 4px solid #2563eb; background: linear-gradient(180deg, #f8fbff, #fff); }
.message-item.read { opacity: .88; }
.message-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.message-item-head strong { color: #172033; font-size: 15px; }
.message-level { padding: 3px 8px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 700; }
.message-item.level-warning .message-level { background: #fffbeb; color: #b45309; }
.message-item.level-success .message-level { background: #ecfdf5; color: #15803d; }
.message-item.level-danger .message-level { background: #fff1f2; color: #e11d48; }
.message-item p { margin: 0; color: #475569; font-size: 13px; line-height: 1.7; }
.message-detail { margin-top: 10px; color: #334155; font-size: 13px; line-height: 1.7; }
.message-meta { margin-top: 10px; color: #94a3b8; font-size: 12px; }
.message-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.aside-message-card p { margin: 8px 0 10px; color: #475569; font-size: 12px; line-height: 1.6; }
.aside-message-title { display: flex; align-items: center; gap: 8px; color: #172033; font-size: 14px; font-weight: 700; }
.aside-message-title span[data-message-badge] { position: static; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; }
.message-empty-state { padding: 18px; color: #64748b; font-size: 13px; text-align: center; background: #f8fafc; border: 1px dashed #dbe7f4; border-radius: 8px; }
.dashboard-aside-right { width: 21%; min-width: 180px; flex-shrink: 0; padding-left: 22px; padding-right: 20px; border-left: 0; margin-top: 0; background: #333; transition: width .25s ease, min-width .25s ease, padding .25s ease, opacity .2s ease; }
.dashboard-aside-right .aside-block { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid #edf2f7; }
.dashboard-aside-right .aside-block h3 { margin: 0 0 12px; font-size: 13px; color: #718096; font-weight: 600; }
.dashboard-aside-right #dashboard-weather { font-size: 14px; color: #4a5568; }
.dashboard-aside-right #dashboard-weather .weather-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-aside-right #dashboard-weather .weather-left { min-width: 0; }
.dashboard-aside-right #dashboard-weather .weather-location { font-size: 13px; color: #718096; margin-bottom: 4px; }
.dashboard-aside-right #dashboard-weather .weather-temp { font-size: 22px; font-weight: bold; color: #2b6cb0; }
.dashboard-aside-right #dashboard-weather .weather-right { text-align: right; flex-shrink: 0; }
.dashboard-aside-right #dashboard-weather .weather-desc { font-size: 13px; color: #718096; display: block; margin-bottom: 4px; }
.dashboard-aside-right #dashboard-weather .weather-icon { font-size: 36px; line-height: 1; display: block; }
.user-card { display: flex; align-items: center; margin-bottom: 12px; }
.user-card-avatar-wrap { width: 40px; height: 40px; margin-right: 10px; flex-shrink: 0; }
.user-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#3182ce,#63b3ed); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.user-card-text .hi { font-size: 12px; color: #a0aec0; }
.user-card-text .name { font-size: 14px; font-weight: 600; color: #2d3748; }
.user-card-text .welcome-back { font-size: 12px; color: #718096; }
.date-pattern-block { background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f5faff 100%); border-radius: 10px; padding: 12px; }
.pattern-label { font-size: 11px; color: #718096; text-transform: uppercase; letter-spacing: .08em; }
#dashboard-date { font-size: 17px; font-weight: bold; color: #2c5282; line-height: 1.4; margin-top: 4px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; text-align: center; color: #64748b; }
.calendar-day { padding: 5px 0; border-radius: 6px; background: #f8fafc; }
.calendar-day.today { background: #2563eb; color: #fff; font-weight: 700; }
.interview-block { overflow-x: auto; }
.interview-block table { width: 100%; min-width: 280px; border-collapse: collapse; font-size: 12px; }
.interview-block th, .interview-block td { padding: 4px 6px; border-bottom: 1px solid #edf2f7; white-space: nowrap; }
.right-aside-toggle { position: fixed; right: 10px; top: 52%; transform: translateY(-50%); z-index: 3; width: 24px; height: 42px; border: 1px solid #dbe7f4; border-radius: 14px; background: #fff; color: #64748b; box-shadow: 0 8px 20px rgba(31,41,55,.08); }
.right-aside-toggle:hover { background: #f8fafc; border-color: #94a3b8; color: #1e293b; }
body.right-aside-collapsed #dashboard-aside-right { width: 12px !important; min-width: 12px !important; max-width: 12px !important; padding-left: 0 !important; padding-right: 0 !important; opacity: .35; overflow: hidden; }
body.right-aside-collapsed #dashboard-aside-right .aside-block { display: none; }
body.right-aside-collapsed #page-content { padding-right: 20px; }
input, select, textarea { width: 100%; border: 1px solid #cfd9e6; border-radius: 7px; padding: 9px 11px; color: #334155; background: #fff; }
textarea { min-height: 92px; line-height: 1.65; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 920px; }
.form-grid label { color: #475569; font-size: 12px; font-weight: 700; }
.form-grid label span { display: block; margin-bottom: 6px; }
.form-grid .full { grid-column: 1 / -1; }
.form-action-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.contract-admin-form { border-color: #cbd5e1; }
.contract-admin-grid { max-width: 1100px; }
.contract-admin-actions { margin-top: 14px; justify-content: flex-end; }
.work-item-card { margin-bottom: 14px; padding: 14px; border: 1px solid #edf2f7; border-radius: 8px; background: #f8fafc; }
.work-item-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.submitted-overview { border-color: #c7d7eb; }
.submitted-status-card { padding: 18px 20px; border: 1px solid #c9def5; border-radius: 8px; background: linear-gradient(135deg, #f4f9ff 0%, #fff 58%, #eef7f4 100%); box-shadow: inset 4px 0 0 #2563eb; }
.submitted-status-card strong { display: block; color: #172033; font-size: 16px; font-weight: 800; }
.submitted-status-card p { margin: 7px 0 0; color: #64748b; line-height: 1.65; }
.report-detail-readonly { color: #334155; }
.detail-block { margin-top: 14px; padding: 15px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.detail-block:first-child { margin-top: 0; }
.detail-block h3 { margin: 0 0 10px; color: #172033; font-size: 15px; font-weight: 800; }
.detail-block p, .readonly-work-item p { margin: 7px 0 0; color: #475569; line-height: 1.6; }
.readonly-work-item { margin-top: 10px; padding: 13px; border: 1px solid #dbe7f4; border-radius: 8px; background: #fff; }
.readonly-work-item:first-of-type { margin-top: 0; }
.readonly-work-item strong { display: block; color: #172033; font-size: 14px; font-weight: 800; }
.history-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.history-summary-card { padding: 16px 18px; border: 1px solid #dbe7f4; border-radius: 8px; background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: 0 10px 28px rgba(31,41,55,.06); }
.history-summary-card span { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.history-summary-card b { display: block; margin-top: 8px; color: #0f172a; font-size: 28px; line-height: 1; }
.history-filter-row { display: grid; grid-template-columns: minmax(180px, 240px) minmax(150px, 190px) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.history-filter-row label { color: #475569; font-size: 12px; font-weight: 700; }
.history-filter-row label input, .history-filter-row label select { margin-top: 6px; }
.history-filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
.history-report-list { display: grid; gap: 14px; }
.history-report-card { padding: 16px 18px; border: 1px solid #dbe7f4; border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(31,41,55,.05); }
.history-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.history-report-head strong { color: #111827; font-size: 16px; font-weight: 800; }
.history-report-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf2f7; }
.history-report-section span { display: block; margin-bottom: 6px; color: #64748b; font-size: 12px; font-weight: 800; }
.history-report-section p { margin: 0; color: #334155; font-size: 13px; line-height: 1.75; white-space: normal; word-break: break-word; }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.modal-mask { position: fixed; inset: 0; z-index: 1000; display:flex; align-items:center; justify-content:center; background: rgba(15,23,42,.48); }
.modal-box { width: 520px; max-width: calc(100vw - 32px); background:#fff; border-radius: 10px; box-shadow: 0 28px 80px rgba(0,0,0,.28); overflow:hidden; }
.modal-settings-v2 { width: 820px; max-width: calc(100vw - 32px); max-height: 88vh; }
.modal-ledger-detail { width: 860px; max-width: calc(100vw - 32px); max-height: 88vh; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding: 15px 20px; border-bottom: 1px solid #1f2937; background:#111827; color:#fff; }
.modal-header h3 { margin:0; font-size:17px; font-weight:600; color:#fff; }
.modal-header button { width: 28px; height: 28px; border:0; background:transparent; color:#fff; opacity:.85; font-size:22px; }
.modal-body { padding: 0; max-height: 76vh; overflow:auto; }
.settings-shell { display:flex; width:100%; min-height:560px; background:#fff; }
.settings-nav { width:150px; flex-shrink:0; background:#f8fafc; border-right:1px solid #e2e8f0; padding-top:12px; }
.settings-nav a { display:block; padding:12px 18px; color:#475569; font-size:14px; border-left:3px solid transparent; }
.settings-nav a:hover { background:#eef6ff; color:#1d4ed8; }
.settings-nav a.active { background:#fff; color:#1d4ed8; font-weight:700; border-left-color:#2563eb; margin-right:-1px; }
.settings-main { flex:1; min-width:0; padding:26px 32px 42px; background:#fff; }
.settings-pane h4 { margin:0 0 6px; font-size:19px; font-weight:650; color:#111827; }
.settings-pane .pane-desc { color:#64748b; font-size:13px; margin:0 0 22px; line-height:1.6; max-width:620px; }
.settings-section { border-top:1px solid #edf2f7; padding-top:20px; margin-top:20px; }
.settings-section:first-of-type { border-top:none; padding-top:0; margin-top:0; }
.settings-section-title { margin:0 0 12px; font-size:14px; font-weight:700; color:#334155; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 18px; max-width:620px; }
.settings-field { margin-bottom:16px; max-width:420px; }
.settings-field label { display:block; font-size:12px; font-weight:650; color:#475569; margin-bottom:6px; }
.settings-input { width:100%; max-width:400px; padding:9px 11px; border:1px solid #cbd5e1; border-radius:6px; font-size:14px; box-sizing:border-box; }
.settings-input:focus { border-color:#2563eb; outline:none; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.btn-settings-save { margin-top:4px; min-width:112px; border-radius:6px; padding:8px 18px; font-weight:650; font-size:14px; background:#2563eb; border:1px solid #1d4ed8; color:#fff; }
.settings-account-head { display:flex; align-items:center; gap:18px; margin-bottom:18px; }
.settings-account-meta .name { font-size:18px; font-weight:700; color:#111827; margin-bottom:3px; }
.settings-account-meta .sub { font-size:13px; color:#64748b; }
.settings-avatar-wrap { width:82px; height:82px; border-radius:50%; flex-shrink:0; position:relative; }
.settings-avatar-fallback { width:82px; height:82px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#3182ce,#63b3ed); color:#fff; font-size:20px; font-weight:800; box-shadow:0 4px 12px rgba(15,23,42,.10); }
#settingsAvatarPreview { width:82px; height:82px; border-radius:50%; object-fit:cover; border:2px solid #e2e8f0; background:#f1f5f9; box-shadow:0 4px 12px rgba(15,23,42,.08); display:none; position:absolute; left:0; top:0; }
.settings-file-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.settings-help { margin-top:6px; color:#94a3b8; font-size:12px; line-height:1.5; }
.about-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:16px 18px; margin-bottom:16px; max-width:620px; }
.about-card p { margin:0 0 8px; font-size:13px; color:#475569; line-height:1.6; }
.version-feature-list { margin:0; padding-left:18px; color:#475569; font-size:13px; line-height:1.75; }
.version-intro { color:#64748b; font-size:13px; line-height:1.65; margin:0 0 22px; max-width:640px; }
.version-timeline { position:relative; padding-left:26px; }
.version-timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:linear-gradient(#bfdbfe,#e2e8f0); }
.version-item { position:relative; margin-bottom:24px; }
.version-item:last-child { margin-bottom:4px; }
.version-item::before { content:""; position:absolute; left:-25px; top:4px; width:12px; height:12px; border-radius:50%; background:#fff; border:3px solid #cbd5e1; }
.version-item.is-major::before { border-color:#2563eb; box-shadow:0 0 0 4px rgba(37,99,235,.14); }
.version-item.is-latest::before { border-color:#2563eb; background:#2563eb; box-shadow:0 0 0 4px rgba(37,99,235,.18); }
.version-head { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:8px; }
.version-no { font-size:16px; font-weight:800; color:#111827; letter-spacing:.3px; }
.version-date { font-size:12px; color:#94a3b8; font-weight:600; }
.version-badge { font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; line-height:1.6; }
.version-badge.major { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.version-badge.launch { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.version-badge.latest { background:#2563eb; color:#fff; }
.version-badge.beta { background:#f1f5f9; color:#64748b; border:1px solid #e2e8f0; }
.version-desc { margin:0; padding-left:18px; color:#475569; font-size:13px; line-height:1.85; }
.version-desc li { margin-bottom:4px; }
.version-desc .hl { color:#1d4ed8; font-weight:700; }
.ledger-detail-body { padding: 20px 24px 24px; background: #f8fafc; }
.ledger-detail-summary { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #dbe7f4; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(31,41,55,.05); }
.ledger-detail-summary h4 { margin: 0 0 8px; color: #111827; font-size: 18px; font-weight: 800; line-height: 1.35; }
.ledger-detail-summary p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.7; }
.ledger-detail-source { margin-top: 8px !important; color: #475569 !important; }
.ledger-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ledger-detail-section { padding: 16px; border: 1px solid #dbe7f4; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(31,41,55,.04); }
.ledger-detail-section.full { grid-column: 1 / -1; }
.ledger-detail-section h4 { margin: 0 0 12px; color: #172033; font-size: 15px; font-weight: 800; }
.ledger-detail-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #edf2f7; color: #334155; font-size: 13px; line-height: 1.65; }
.ledger-detail-row:first-of-type { border-top: 0; padding-top: 0; }
.ledger-detail-row b { color: #64748b; font-weight: 700; }
.ledger-detail-row span { white-space: pre-wrap; word-break: break-word; }
.ledger-status-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 800; }
.ledger-source-tag { display: inline-flex; align-items: center; width: fit-content; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #ecfeff; color: #0f766e; font-size: 11px; font-weight: 800; }
.table .ledger-list-text { max-width: 260px; color: #475569; line-height: 1.55; white-space: normal; }
.login-page { min-height: 100vh; background: #0f172a; color: #e5edf6; }
.login-page .height-wrapper { position: relative; min-height: 100vh; width: 100%; overflow: hidden; background: linear-gradient(135deg, rgba(15,23,42,.96) 0%, rgba(17,24,39,.92) 48%, rgba(15,118,110,.76) 100%), radial-gradient(circle at 20% 15%, rgba(37,99,235,.22), transparent 28%), repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 18px); }
.login-page .height-wrapper::before { content: ""; position: fixed; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.login-page .height-wrapper::after { content: ""; position: fixed; right: -15vw; top: -22vh; width: 58vw; height: 70vh; background: radial-gradient(circle, rgba(20,184,166,.28), rgba(37,99,235,.08) 42%, transparent 68%); filter: blur(2px); pointer-events: none; z-index: 0; }
.login-header { position: fixed; top: 30px; left: 34px; right: 34px; z-index: 2; }
.login-brand-small { color: #fff; font-size: 18px; font-weight: 820; letter-spacing: .02em; }
.login-shell { position: relative; z-index: 2; min-height: 100vh; max-width: 1180px; margin: 0 auto; padding: 92px 34px 70px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 76px; align-items: center; }
.login-brand-panel { max-width: 600px; }
.login-brand-panel h2 { margin: 0; color: #f8fafc; font-size: 44px; font-weight: 820; line-height: 1.18; }
.login-brand-panel p { max-width: 520px; margin: 18px 0 0; color: #b9c6d6; font-size: 16px; line-height: 1.85; }
.login-feature-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 34px; max-width: 560px; }
.login-feature { padding: 14px 15px; border: 1px solid rgba(223,231,241,.16); border-radius: 8px; background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.login-feature b, .login-feature span { display: block; }
.login-feature b { color:#f8fafc; font-size:14px; margin-bottom:5px; }
.login-feature span { color:#9fb0c3; font-size:12px; line-height:1.45; }
.login-card { display: block; width: 100%; padding: 30px; border: 1px solid rgba(223,231,241,.9); border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); overflow:hidden; color: #1f2937; }
.login-card-title { display:block; margin:0 0 22px; color:#1f2937; font-size:24px; font-weight:820; }
.form-group-login { display: block; margin-bottom: 16px; }
.form-group-login span { display:block; margin-bottom:8px; color:#475569; font-size:13px; font-weight:750; }
.form-group-login input { width:100%; height:46px; padding:0 14px; border:1px solid #dfe7f1; border-radius:8px; background:#f8fafd; color:#1f2937; font-size:14px; }
.form-group-login input:focus { outline:none; border-color:#2563eb; background:#fff; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.login-remember-row { display:flex; align-items:center; gap:8px; margin: 2px 0 0; color:#64748b; font-size:13px; user-select:none; }
.login-remember-row input { width:15px; height:15px; margin:0; accent-color:#2563eb; }
.login-btn-main { width:100%; height:48px; margin-top:18px; border:0; border-radius:8px; background:linear-gradient(180deg,#3478f6,#2563eb); color:#fff; font-size:16px; font-weight:780; box-shadow:0 12px 24px rgba(37,99,235,.23); }
@media (max-width: 1200px) {
  #main .contained > aside { width: 170px; }
  .dashboard-aside-right { width: 260px; }
  .home-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  #main .contained { flex-direction: column; }
  #main .contained > aside, .dashboard-aside-right { width: 100%; min-width: 0; padding: 0; border-left: 0; }
  .page-content-wrap { flex-direction: column; }
  #page-content { padding-right: 0; }
  .panel-view { min-height: auto; }
  .right-aside-toggle { display: none; }
  .login-shell { grid-template-columns: 1fr; padding: 82px 22px 42px; }
  .login-feature-row, .form-grid, .home-kpi-grid, .history-summary-grid, .history-filter-row, .message-summary-row { grid-template-columns: 1fr; }
  .ledger-detail-grid { grid-template-columns: 1fr; }
}

/* ===== AI助手（小满）===== */
.assistant-shell { display: flex; gap: 16px; height: calc(100vh - 210px); min-height: 460px; }
.assistant-sidebar { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe7f4; border-radius: 8px; box-shadow: 0 10px 28px rgba(31,41,55,.08); overflow: hidden; }
.assistant-new-btn { margin: 12px; flex-shrink: 0; }
.assistant-conv-list { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.assistant-conv-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 7px; cursor: pointer; margin-bottom: 4px; color: #334155; font-size: 14px; }
.assistant-conv-item:hover { background: #f1f6fd; }
.assistant-conv-item.active { background: #e8f1fe; color: #1d4ed8; font-weight: 600; }
.assistant-conv-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant-conv-del { flex-shrink: 0; color: #94a3b8; font-size: 16px; line-height: 1; padding: 0 2px; }
.assistant-conv-del:hover { color: #ef4444; }
.assistant-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe7f4; border-radius: 8px; box-shadow: 0 10px 28px rgba(31,41,55,.08); overflow: hidden; }
.assistant-messages { flex: 1; overflow-y: auto; padding: 20px 22px; }
.assistant-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: #64748b; }
.assistant-empty-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; box-shadow: 0 8px 22px rgba(31,41,55,.16); margin-bottom: 14px; }
.assistant-empty-avatar img { width: 100%; height: 100%; object-fit: cover; }
.assistant-empty-title { font-size: 17px; font-weight: 700; color: #172033; margin-bottom: 8px; }
.assistant-empty-desc { max-width: 420px; line-height: 1.7; font-size: 14px; }
.assistant-row { display: flex; gap: 10px; margin-bottom: 18px; align-items: flex-start; }
.assistant-row.user { flex-direction: row-reverse; }
.assistant-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.assistant-avatar img { width: 100%; height: 100%; object-fit: cover; }
.assistant-avatar.user-avatar { display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #3478f6, #2563eb); color: #fff; font-size: 14px; font-weight: 700; }
.assistant-bubble-wrap { max-width: 76%; display: flex; flex-direction: column; }
.assistant-row.user .assistant-bubble-wrap { align-items: flex-end; }
.assistant-name { font-size: 12px; color: #94a3b8; margin-bottom: 4px; padding: 0 2px; }
.assistant-bubble { padding: 11px 15px; border-radius: 12px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.assistant-row.assistant .assistant-bubble { background: #f4f7fb; color: #1f2937; border-top-left-radius: 3px; white-space: normal; }
.assistant-row.user .assistant-bubble { background: linear-gradient(180deg, #3478f6, #2563eb); color: #fff; border-top-right-radius: 3px; }

/* 小满回复的 Markdown 渲染样式 */
.assistant-row.assistant .assistant-bubble .md-p { margin: 0 0 8px; }
.assistant-row.assistant .assistant-bubble .md-p:last-child { margin-bottom: 0; }
.assistant-row.assistant .assistant-bubble .md-h { margin: 12px 0 6px; font-weight: 700; line-height: 1.4; }
.assistant-row.assistant .assistant-bubble h2.md-h { font-size: 17px; }
.assistant-row.assistant .assistant-bubble h3.md-h { font-size: 15px; }
.assistant-row.assistant .assistant-bubble h4.md-h, .assistant-row.assistant .assistant-bubble h5.md-h { font-size: 14px; }
.assistant-row.assistant .assistant-bubble .md-h:first-child { margin-top: 0; }
.assistant-row.assistant .assistant-bubble .md-ul, .assistant-row.assistant .assistant-bubble .md-ol { margin: 4px 0 10px; padding-left: 22px; }
.assistant-row.assistant .assistant-bubble .md-ul li, .assistant-row.assistant .assistant-bubble .md-ol li { margin: 2px 0; }
.assistant-row.assistant .assistant-bubble .md-code { background: #eaeef5; color: #be123c; padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.assistant-row.assistant .assistant-bubble .md-pre { background: #1e293b; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
.assistant-row.assistant .assistant-bubble .md-pre code { background: none; color: inherit; padding: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; white-space: pre; }
.assistant-row.assistant .assistant-bubble .md-hr { border: none; border-top: 1px solid #d8e0ec; margin: 12px 0; }
.assistant-row.assistant .assistant-bubble .md-table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
.assistant-row.assistant .assistant-bubble .md-table th, .assistant-row.assistant .assistant-bubble .md-table td { border: 1px solid #cdd9e8; padding: 6px 10px; text-align: left; vertical-align: top; }
.assistant-row.assistant .assistant-bubble .md-table th { background: #e8f1fe; font-weight: 700; color: #1d4ed8; }
.assistant-row.assistant .assistant-bubble .md-table tbody tr:nth-child(even) { background: #f7faff; }
.assistant-typing { color: #94a3b8; font-size: 13px; }
.assistant-input-bar { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #e6eef8; background: #fbfdff; align-items: flex-end; }
.assistant-input { flex: 1; resize: none; min-height: 24px; max-height: 140px; padding: 9px 12px; border: 1px solid #cdddf0; border-radius: 8px; font-size: 14px; line-height: 1.6; font-family: inherit; outline: none; }
.assistant-input:focus { border-color: #3478f6; box-shadow: 0 0 0 3px rgba(52,120,246,.12); }
.assistant-send-btn { flex-shrink: 0; }
.assistant-send-btn:disabled { opacity: .55; cursor: not-allowed; }

/* AI助手：对话框头部 + 全屏按钮 + 上下文提示 */
.assistant-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #e6eef8; background: #fbfdff; flex-shrink: 0; }
.assistant-chat-title { font-size: 14px; font-weight: 700; color: #172033; }
.assistant-fullscreen-btn { border: 1px solid #cdddf0; background: #fff; color: #2563eb; border-radius: 7px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.assistant-fullscreen-btn:hover { background: #eaf2fe; border-color: #3478f6; }
.assistant-context-warn { padding: 8px 16px; background: #fff7ed; color: #9a3412; font-size: 13px; border-bottom: 1px solid #fed7aa; line-height: 1.5; flex-shrink: 0; }
.assistant-context-warn.full { background: #fef2f2; color: #b91c1c; border-bottom-color: #fecaca; }

/* AI助手：全屏模式（新标签页 ?fullscreen=assistant）*/
body.assistant-fullscreen .login-page { display: none !important; }
body.assistant-fullscreen header,
body.assistant-fullscreen aside,
body.assistant-fullscreen .dashboard-aside-right,
body.assistant-fullscreen .right-aside-toggle,
body.assistant-fullscreen #panel-assistant > h1,
body.assistant-fullscreen #panel-assistant > .page-desc { display: none !important; }
body.assistant-fullscreen .container-fluid, body.assistant-fullscreen .contained { max-width: none; margin: 0; padding: 0; }
body.assistant-fullscreen .page-content-wrap { padding: 0; }
body.assistant-fullscreen .panel-view { padding: 0; min-height: 100vh; }
body.assistant-fullscreen .assistant-shell { height: 100vh; border-radius: 0; gap: 0; }
body.assistant-fullscreen .assistant-sidebar { border-radius: 0; border-top: 0; border-bottom: 0; border-left: 0; }
body.assistant-fullscreen .assistant-chat { border-radius: 0; border: 0; }
body.assistant-fullscreen #main { padding: 0; }

/* AI助手：会话项操作按钮（悬停显示重命名/删除） */
.assistant-conv-actions { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.assistant-conv-item:hover .assistant-conv-actions { opacity: 1; }
.assistant-conv-item.active .assistant-conv-actions { opacity: .7; }
.assistant-conv-rename, .assistant-conv-del { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 13px; line-height: 1; color: #94a3b8; cursor: pointer; }
.assistant-conv-rename:hover { background: #e0ecfd; color: #2563eb; }
.assistant-conv-del { font-size: 16px; }
.assistant-conv-del:hover { background: #fde8e8; color: #ef4444; }

/* AI助手：思考中动画 */
.assistant-thinking { display: inline-flex; align-items: center; gap: 8px; color: #64748b; }
.assistant-thinking-text { font-size: 13px; }
.assistant-dots { display: inline-flex; gap: 4px; }
.assistant-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3478f6; display: inline-block; animation: assistant-bounce 1.2s infinite ease-in-out both; }
.assistant-dots i:nth-child(1) { animation-delay: -0.24s; }
.assistant-dots i:nth-child(2) { animation-delay: -0.12s; }
.assistant-dots i:nth-child(3) { animation-delay: 0s; }
@keyframes assistant-bounce { 0%, 80%, 100% { transform: scale(0.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ===== 统一 Toast 提示 ===== */
.ui-toast-host { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.ui-toast { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 460px; padding: 12px 18px; border-radius: 10px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.18); font-size: 14px; color: #1f2937; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .25s; border: 1px solid #eef2f7; }
.ui-toast.show { opacity: 1; transform: translateY(0); }
.ui-toast-icon { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.ui-toast-success .ui-toast-icon { background: #16a34a; }
.ui-toast-error .ui-toast-icon { background: #ef4444; }
.ui-toast-info .ui-toast-icon { background: #3478f6; }
.ui-toast-msg { line-height: 1.5; word-break: break-word; }

/* ===== 统一对话框（confirm / prompt / alert）===== */
.ui-dialog-mask { position: fixed; inset: 0; z-index: 99998; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; padding: 20px; }
.ui-dialog-mask.show { opacity: 1; }
.ui-dialog { width: 420px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(15,23,42,.32); overflow: hidden; transform: scale(.94); transition: transform .2s; }
.ui-dialog-mask.show .ui-dialog { transform: scale(1); }
.ui-dialog-head { padding: 18px 22px 6px; font-size: 17px; font-weight: 700; color: #172033; }
.ui-dialog-body { padding: 6px 22px 18px; }
.ui-dialog-message { font-size: 14px; line-height: 1.7; color: #475569; white-space: pre-wrap; word-break: break-word; }
.ui-dialog-input { margin-top: 14px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cdddf0; border-radius: 8px; font-size: 14px; outline: none; }
.ui-dialog-input:focus { border-color: #3478f6; box-shadow: 0 0 0 3px rgba(52,120,246,.12); }
.ui-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.ui-dialog-btn { min-width: 76px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.ui-dialog-cancel { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ui-dialog-cancel:hover { background: #e8eef6; }
.ui-dialog-ok { background: linear-gradient(180deg, #3478f6, #2563eb); color: #fff; }
.ui-dialog-ok:hover { filter: brightness(1.05); }
.ui-dialog-ok.danger { background: linear-gradient(180deg, #f87171, #ef4444); }

/* 资料库 */
.knowledge-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.knowledge-hint { color: #94a3b8; font-size: 13px; }
#header-toolbar.staff-identity-toolbar { height: auto; min-height: 46px; }
#header-toolbar.staff-identity-toolbar .contained { height: auto; min-height: 40px; flex-wrap: wrap; gap: 4px 16px; padding: 4px 16px; }
#header-toolbar.staff-identity-toolbar h1 { min-width: 0; overflow-wrap: anywhere; }
#header-toolbar.staff-identity-toolbar .pull-right { min-width: 0; max-width: 100%; }
#header-toolbar.staff-identity-toolbar .btn-toolbar { align-items: center; justify-content: flex-end; flex-wrap: wrap; }
#header-toolbar.staff-identity-toolbar .btn-group { flex-shrink: 0; }
#header-toolbar.staff-identity-toolbar .current-team-name { min-width: 0; max-width: 100%; padding: 6px 10px; color: #f5f5f5; font-size: 13px; font-weight: 600; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }
#teamSelectionPage .login-shell { display: flex; justify-content: center; }
#teamSelectionSelect { width: 100%; min-height: 42px; border: 1px solid #cdddf0; border-radius: 8px; padding: 8px 12px; background: #fff; color: #263b4b; font: inherit; }
#teamSelectionHint { color: #526b86; line-height: 1.7; }
#teamSelectionError { color: #b91c1c; }
.knowledge-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.knowledge-progress-bar { flex: 1; max-width: 320px; height: 8px; background: #e6eef8; border-radius: 5px; overflow: hidden; }
.knowledge-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3478f6, #2563eb); width: 0; transition: width .2s; }
#knowledgeProgressText { color: #2563eb; font-size: 13px; }
.ui-dialog-textarea { margin-top: 14px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cdddf0; border-radius: 8px; font-size: 14px; outline: none; resize: vertical; min-height: 160px; line-height: 1.6; font-family: inherit; }
.ui-dialog-textarea:focus { border-color: #3478f6; box-shadow: 0 0 0 3px rgba(52,120,246,.12); }
