:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#233047;background:#f4f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}a{color:#4961d3;text-decoration:none}aside{width:220px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #e5e9f1;padding:22px 16px;display:flex;flex-direction:column}.logo{display:flex;gap:10px;align-items:center;font-size:26px;font-weight:800;color:#5264de}.logo span{color:#24324b;font-size:16px;font-weight:700}.logo small{font-size:9px;letter-spacing:1px;color:#94a0b6;margin-top:3px}.nav-label{font-size:11px;color:#9aa4b8;margin:28px 10px 10px;font-weight:600}nav a{display:block;color:#64748b;padding:10px 14px;margin-bottom:4px;border-radius:8px;font-size:13px;font-weight:500}nav a.active{color:#4355db;background:#eef2ff;font-weight:600}nav a:hover{background:#f8fafc;color:#1e293b}.sidebar-foot{margin-top:auto;font-size:12px;color:#98a2b5;line-height:1.8;padding:12px}.workspace-top{position:sticky;top:0;z-index:3000;margin-left:220px;background:#fff}main{margin-left:220px}header{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid #e7ebf3;color:#64748b;font-size:13px}.content{max-width:1440px;padding:12px 24px 24px;margin:auto}.content>*:first-child{margin-top:0!important}h1{font-size:22px;letter-spacing:-.3px;margin:4px 0 8px;color:#0f172a}h2{font-size:15px;font-weight:700;margin:0 0 10px;color:#0f172a}.eyebrow{font-size:10px;font-weight:700;color:#7c87a0;letter-spacing:2px}.muted,small{color:#7e8aa0;line-height:1.5}small{display:block;font-size:11px}p.muted{margin:0 0 10px}.heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px}.heading p{margin:0!important}.panel,.metric{background:white;border:1px solid #e6eaf2;border-radius:12px;padding:18px 20px;margin-bottom:14px;box-shadow:0 2px 8px rgba(35,48,71,0.03)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.metric p{margin:0 0 10px;color:#64748b;font-size:13px;font-weight:500}.metric strong{display:block;font-size:28px;font-weight:700;margin-bottom:6px;color:#0f172a}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;margin-bottom:18px}.grid .panel{min-width:0;margin-bottom:0}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px 20px;background:#fff;border:1px solid #e6eaf2;border-radius:12px;margin-bottom:18px}.filters label{margin:0;min-width:120px;flex:1}.filters input{width:100%;min-width:0;margin:0}.filters .reset{padding:0 16px}label{display:block;color:#64748b;font-size:12px;font-weight:500;margin:0 0 14px}input:not([type="checkbox"]):not([type="radio"]),textarea,select{display:block;margin-top:5px;border:1px solid #dce2ed;border-radius:7px;padding:8px 12px;font:inherit;font-size:13px;background:#fff;color:#29374e;width:100%;box-sizing:border-box;height:38px}input[type="checkbox"],input[type="radio"]{display:inline-block;width:16px;height:16px;margin:0 6px 0 0;padding:0;border:1px solid #c0c9d8;border-radius:4px;cursor:pointer;vertical-align:middle;accent-color:#5265de;box-sizing:border-box;flex-shrink:0}
select{appearance:none;-webkit-appearance:none;background-image:url("chevron-down.svg");background-repeat:no-repeat;background-position:right 12px center;background-size:14px;padding-right:32px;cursor:pointer}
input:focus,textarea:focus,select:focus{outline:2px solid #a9b3ff;outline-offset:1px}button,.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:7px;padding:8px 16px;background:#5265de;color:white;cursor:pointer;font:inherit;font-size:13px;white-space:nowrap;height:38px;box-sizing:border-box}.secondary{background:#eaf0ff;color:#4d60d7}.text-button{background:transparent;color:#78849c;padding:6px 8px;height:auto}.inline{display:inline}.auth{max-width:510px;margin:65px auto;padding:36px}.auth h1{font-size:24px}.auth form{margin-top:24px}.auth button{width:100%}.auth li{margin-bottom:14px;line-height:1.7}.narrow{max-width:850px}table{border-collapse:collapse;width:100%;font-size:13px}th{font-weight:600;color:#64748b;background:#f8f9fc;text-align:left;font-size:12px;padding:10px 14px;border-bottom:1px solid #edf0f6}th,td{padding:11px 14px;border-bottom:1px solid #edf0f6;vertical-align:middle}tbody tr:hover{background:#fafbfc}tbody tr:last-child td{border-bottom:0}.table-wrap{overflow-x:auto}.message{white-space:normal;overflow-wrap:anywhere;min-width:220px;max-width:600px}.nowrap{white-space:nowrap}.badge{display:inline-block;background:#e8f7f0;color:#39866d;border-radius:5px;padding:3px 8px;font-size:11px;font-weight:600;white-space:nowrap}.badge.warn{background:#fff1e4;color:#b7732a}.empty{padding:36px 20px;text-align:center;color:#9aa4b6}.notice{padding:12px 18px;border-radius:8px;margin-bottom:18px;background:#e9f7ef;color:#34735d;font-size:13px}.notice.error{background:#fff0ed;color:#af5141}dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;font-size:12px}dt{color:#8793a8}dd{margin:0;text-align:right;overflow-wrap:anywhere}.bar-row{display:flex;align-items:center;gap:14px;margin:12px 0;font-size:12px}.bar-row span{color:#8b96aa}.bar-row .bar-label{min-width:110px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.bar-row b{min-width:25px;font-weight:600}meter{flex:1;height:14px}meter::-webkit-meter-bar{background:#f0f2fa;border:0;border-radius:7px}meter::-webkit-meter-optimum-value{background:#7c8aeb;border-radius:7px}.checkbox{display:flex;align-items:center;gap:8px;font-size:13px}.checkbox input{width:16px;margin:0;height:auto}.weekdays{display:flex;gap:14px;flex-wrap:wrap}fieldset{border:1px solid #e0e5ee;border-radius:8px;margin-bottom:18px;padding:14px 16px}legend{color:#7e89a0;font-size:12px;font-weight:600;padding:0 4px}.pagination{display:flex;justify-content:flex-end;gap:20px;margin-top:18px}footer{padding:10px 30px 20px;color:#a0a8b8;font-size:11px}.menu-toggle{display:none}.menu-toggle:focus-visible{outline:2px solid #5265de;outline-offset:2px}@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.content{padding:20px}}@media(max-width:700px){.workspace-top{margin-left:0}aside{position:relative;width:auto;padding:16px}.logo{font-size:20px}.nav-label,.sidebar-foot{display:none}nav{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-width:none;box-sizing:border-box;padding:8px 14px 12px;background:#fff;border-top:1px solid #edf0f6;border-bottom:1px solid #e5e9f1;border-left:0;border-right:0;border-radius:0 0 12px 12px;box-shadow:0 10px 30px #23304726;z-index:100}aside.nav-open nav{display:block}nav a{display:flex;align-items:center;min-height:42px;padding:10px 14px;margin:0;font-size:14px;white-space:nowrap}aside .logo{padding-right:52px}.menu-toggle{display:flex;align-items:center;justify-content:center;position:absolute;top:20px;right:16px;width:40px;height:40px;padding:0;background:#eff1ff;color:#4d60d7}.menu-toggle[aria-expanded="true"]{background:#dfe4ff}nav a.active{box-shadow:inset 0 0 0 1px #dce2ff}main{margin:0}header{height:54px;padding:0 20px}.content{padding:18px 14px}.heading{display:block}h1{font-size:22px}.heading .button{margin-top:12px}.panel,.metric{padding:16px}.metrics{gap:10px}.metric strong{font-size:26px}.filters label{min-width:120px}.auth{margin:20px auto}footer{padding:10px 20px}}

.guest main{margin-left:0}.guest .content{min-height:100vh;display:grid;align-items:center}.guest .auth{width:100%;margin:0 auto}

.attachment{margin-top:12px}.attachment audio{display:block;max-width:100%;margin-bottom:8px}

.date-range-box{display:flex;align-items:center;border:1px solid #dce2ed;border-radius:7px;background:#fff;padding:2px 10px;margin-top:5px;height:38px;box-sizing:border-box}
.date-range-box:focus-within{outline:2px solid #a9b3ff;outline-offset:1px}
.date-range-box input[type="date"]{border:0;margin:0;padding:6px 2px;width:125px;font:inherit;font-size:13px;color:#29374e;background:transparent;cursor:pointer;position:relative}
.date-range-box input[type="date"]::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.date-range-box .sep{color:#8c9ba5;font-size:13px;padding:0 8px;user-select:none}
.date-range-box .cal-icon{margin-left:auto;color:#8793a8;font-size:14px;user-select:none;pointer-events:none}

/* 筛选标签与控件统一间距，避免日期、员工和普通输入框各自叠加 margin。 */
.filter-panel{background:#fff;border:1px solid #e6eaf2;border-radius:12px;padding:12px 18px;margin-bottom:14px;box-shadow:0 2px 8px rgba(35,48,71,0.03)}
.filter-panel .filters{padding:0;border:0;margin:0;background:transparent;gap:14px}
.filters > .filter-field,.filters > label{display:flex;flex-direction:column;gap:6px;margin:0}
.filters > .filter-field > span,.filters > label > span{display:block;line-height:18px;margin:0 !important;color:#64748b !important;font-size:12px;font-weight:500}
.filters > label > input,.filters > label > select,.filters .staff-combobox-input,.filters .range-picker-trigger{margin:0 !important}
.filters .staff-combobox-field{flex:1;min-width:130px;position:relative}
.filters .filter-q-label{flex:1.2;min-width:140px}
.filter-actions{display:flex;gap:8px;margin-bottom:0;align-items:center}
.rp-footer-actions{display:flex;gap:6px}
.rp-confirm-btn{padding:2px 10px;font-size:12px;height:26px;line-height:26px}
.period-seg-icon{color:#6366f1}
.staff-badge{padding:1px 5px;font-size:10px;margin-left:auto;line-height:1.4}

/* 自定义联动日期区间选择器 (Date Range Picker) */
.range-picker-field{position:relative !important;flex:0 1 310px;min-width:0;max-width:100%;margin:0}
.range-picker-trigger{display:flex;align-items:center;border:1px solid #dce2ed;border-radius:7px;background:#fff;padding:0 12px;margin-top:5px;height:38px;box-sizing:border-box;cursor:pointer;user-select:none;transition:border-color .15s ease,box-shadow .15s ease}
.range-picker-trigger:hover{border-color:#b0bcff}
.range-picker-trigger:focus,.range-picker-trigger.active{outline:2px solid #a9b3ff;outline-offset:1px;border-color:#5265de}
.range-picker-trigger .rp-icon{font-size:15px;margin-right:8px;color:#5265de}
.range-picker-trigger .rp-text{flex:1;font-size:13px;font-weight:500;color:#29374e}
.range-picker-trigger .rp-arrow{font-size:12px;color:#8c9ba5;margin-left:8px;transition:transform .2s ease}
.range-picker-trigger.active .rp-arrow{transform:rotate(180deg)}

.range-picker-popup{display:none;position:absolute !important;top:calc(100% + 6px) !important;left:0 !important;width:320px !important;background:#fff;border:1px solid #dbe2ef;border-radius:12px;box-shadow:0 16px 40px rgba(25,38,65,0.18);padding:16px;z-index:99999 !important;box-sizing:border-box;user-select:none}
.range-picker-popup.is-open{display:block}
.rp-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.rp-month-title{font-size:14px;font-weight:700;color:#24324b}
.rp-nav-btn{border:0;background:#f4f6fa;color:#4961d3;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer}
.rp-nav-btn:hover{background:#eaf0ff}
.rp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:12px;color:#8c9ba5;font-weight:600;margin-bottom:8px}
.rp-days-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:3px}
.rp-day{height:34px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#24324b;cursor:pointer;position:relative;border-radius:0}
.rp-day:hover{background:#eff1ff;border-radius:6px}
.rp-day.rp-other-month{color:#c0c8d6}
.rp-day.rp-start{background:#5265de !important;color:#fff !important;border-top-left-radius:8px;border-bottom-left-radius:8px;font-weight:700}
.rp-day.rp-end{background:#5265de !important;color:#fff !important;border-top-right-radius:8px;border-bottom-right-radius:8px;font-weight:700}
.rp-day.rp-start.rp-end{border-radius:8px !important}
.rp-day.rp-in-range{background:#edf1ff;color:#3b4dbd}
.rp-footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:10px;border-top:1px solid #f0f3f8}
.rp-hint{font-size:12px;color:#78849c}
.rp-clear-btn{border:0;background:transparent;color:#4961d3;font-size:12px;cursor:pointer;padding:4px 8px}

nav a:focus-visible{outline:2px solid #5265de;outline-offset:2px}

/* 现代化快捷周期分段胶囊组件 (Segmented Control) */
.period-segmented-bar{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf1f7;flex-wrap:wrap}
.period-segmented-label{font-size:12px;color:#7e8b9f;font-weight:600;display:inline-flex;align-items:center;gap:4px;user-select:none}
.period-segmented-group{display:inline-flex;align-items:center;background:#f1f4f9;border-radius:8px;padding:3px;gap:2px}
.period-seg-btn{display:inline-block;padding:5px 13px;font-size:12px;border-radius:6px;font-weight:500;color:#5a6882;text-decoration:none;transition:all .15s ease;user-select:none;line-height:1.4}
.period-seg-btn:hover{color:#1e293b;background:rgba(255,255,255,0.65)}
.period-seg-btn.active{background:#fff;color:#4355db;font-weight:600;box-shadow:0 1px 3px rgba(35,48,71,0.08)}

/* 知识库现代视觉样式与模态框约束 */
.kb-modal-overlay{display:none;position:fixed !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;width:100% !important;height:100% !important;background:rgba(15,23,42,0.6) !important;z-index:999999 !important;align-items:center;justify-content:center}
.kb-modal-overlay.active{display:flex !important}
.kb-rule-row:hover{background:#f8fafc}
.rule-priority-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-size:11px;font-weight:700;background:#eff2fe;color:#4355db}

.mini-voice-play-btn,.mini-voice-play-btn:hover,.mini-voice-play-btn[aria-pressed="true"]{background:transparent;border:0;box-shadow:none}
.mini-voice-play-btn:hover,.mini-voice-play-btn[aria-pressed="true"]{color:#4355db}
.voice-waves{width:16px;height:16px}
.voice-play[aria-pressed="true"] .voice-waves path{animation:voice-wave 1.2s ease-in-out infinite}
.voice-play[aria-pressed="true"] .voice-waves path:nth-child(2){animation-delay:.15s}
.voice-play[aria-pressed="true"] .voice-waves path:nth-child(3){animation-delay:.3s}
@keyframes voice-wave{0%,100%{opacity:.3}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.voice-play[aria-pressed="true"] .voice-waves path{animation:none}}
.voice-message{display:flex;align-items:flex-start;gap:10px;white-space:normal;max-width:520px}.voice-play{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:transparent;color:#68778b}.voice-play[aria-pressed="true"]{color:#4961d3}.voice-play:disabled{opacity:.5;cursor:default}.voice-play:focus-visible{outline:2px solid #5265de;outline-offset:2px}.voice-text{padding:10px 0;border-radius:8px;min-width:0;overflow-wrap:anywhere;white-space:normal}.voice-text>div{white-space:pre-wrap}.voice-text small{margin-top:4px}.voice-message audio[hidden],.voice-error[hidden]{display:none}
.voice-error{color:#dc2626;font-size:10px}
#toast-container{position:fixed;bottom:28px;right:28px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast-item{background:#f6ffed;color:#389e0d;border:1px solid #b7eb8f;padding:10px 18px;border-radius:8px;font-size:13px;font-weight:500;box-shadow:0 4px 14px rgba(0,0,0,0.08);opacity:0;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease;pointer-events:auto}
.toast-item.is-error{background:#fff1f0;color:#cf1322;border-color:#ffa39e}
.toast-item.is-visible{opacity:1;transform:translateY(0)}
.toast-item.is-hiding{opacity:0;transform:translateY(8px)}

.message-body{white-space:pre-wrap}.message>.attachment:first-child{margin-top:0}

/* 知识库操作列精致小按钮 (水平并排) */
.kb-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 28px !important;
  box-sizing: border-box !important;
  transition: all .15s ease !important;
  text-decoration: none !important;
}
.kb-action-btn.edit {
  background: #eff2fe !important;
  color: #4355db !important;
  border: 1px solid #dce4fd !important;
}
.kb-action-btn.edit:hover {
  background: #e0e7fe !important;
  border-color: #c7d2fe !important;
}
.kb-action-btn.delete {
  background: #fef2f2 !important;
  color: #ef4444 !important;
  border: 1px solid #fee2e2 !important;
}
.kb-action-btn.delete:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* 群成员表在窄屏中横向滚动，避免姓名和身份逐字折行。 */
.group-table{min-width:680px}.group-table th,.group-table td{white-space:nowrap}
.messages-intro{margin-bottom:24px}
.chat-table .col-time{min-width:165px;white-space:nowrap}
.chat-table .col-id{min-width:190px;max-width:280px;overflow-wrap:anywhere}
.inline-voice-row .voice-text{line-height:24px;color:#0f172a}
.inline-voice-row{gap:4px}
.inline-voice-row .voice-play{flex-basis:28px;width:28px}

.timing-bars{margin-top:14px}.timing-bars .bar-row{display:grid;grid-template-columns:128px minmax(0,1fr) 48px;gap:12px}.timing-bars span{white-space:nowrap}.timing-bars meter{width:100%;min-width:0}.timing-bars b{text-align:right;white-space:nowrap}

/* 员工管理操作按钮专用样式 (外部 CSS 控制尺寸与外观，兼容 CSP) */
.emp-action-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.emp-action-wrap form {
  margin: 0 !important;
  display: inline-flex !important;
}

.btn-toggle-cs,
.btn-toggle-active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 26px !important;
  box-sizing: border-box !important;
  transition: all .15s ease !important;
  margin: 0 !important;
}

.btn-toggle-cs {
  background: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-toggle-cs:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}

.btn-toggle-active {
  background: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-toggle-active:hover {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* 精致底部分页组件 */
.pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid #edf0f6 !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.pagination-info {
  font-size: 12px !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
}

.pagination-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #dce2ed !important;
  color: #475569 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all .15s ease !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.page-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

.page-current {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #4355db !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.page-size-select-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-right: 8px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.page-size-select {
  height: 28px !important;
  padding: 0 24px 0 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background-color: #ffffff !important;
  border: 1px solid #dce2ed !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  line-height: 26px !important;
  margin: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  background-size: 11px !important;
  background-position: right 6px center !important;
  outline: none !important;
}

.page-size-select:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

.page-size-select:focus {
  border-color: #a9b3ff !important;
  box-shadow: 0 0 0 2px #e0e7ff !important;
}


.outbound-content{white-space:pre-wrap;overflow-wrap:anywhere;min-width:180px;max-width:420px;font:inherit;margin:0}
.sender-switch{display:inline-flex;align-items:center;gap:10px;background:#64748b}.sender-switch.is-on{background:#15803d}.sender-switch span{display:inline-block;width:34px;height:20px;border-radius:12px;background:#ffffff66;position:relative}.sender-switch span::after{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%}.sender-switch.is-on span::after{left:17px}
.notification-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}.notification-layout>.panel{min-width:0;display:flex;flex-direction:column;margin-bottom:0}.notification-layout .outbound-content{min-width:0;max-width:none;flex:1;max-height:none}@media(max-width:700px){.notification-layout{grid-template-columns:1fr;gap:0}}
.notice.warn{background:#fff7e6;border:1px solid #ffd591;color:#d46b08}
.panel-foot-summary{margin-top:18px;padding-top:12px;border-top:1px solid #f0f3f8;font-size:12px;color:#7e8aa0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.panel-foot-dl{margin-top:18px;padding-top:12px;border-top:1px solid #f0f3f8}
.trend-day{min-width:55px}
.empty-ok{color:#39866d !important;background:#f7fcf9}
.badge-closed{background:#f1f5f9;color:#64748b}
.manual-sync-row{margin-top:20px;padding-top:16px;border-top:1px solid #edf0f6;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.manual-sync-title{margin:0 0 4px;font-weight:600;color:#0f172a}
.nav-filters{display:flex;gap:8px;flex-wrap:wrap}
.nav-filter-btn{padding:6px 14px;font-size:12px;height:32px}
.file-input{padding:6px 10px !important;height:auto !important}
.textarea-auto{height:auto !important;padding:10px 12px;line-height:1.6}
.info-note-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px 16px;margin:16px 0;font-size:12px;color:#64748b;line-height:1.6}
.kb-theme-title{font-weight:700;color:#0f172a;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-category-tag{font-size:11px;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;padding:1px 6px;border-radius:4px}
.kb-kw-list{display:flex;gap:4px;flex-wrap:wrap;max-height:48px;overflow:hidden}
.kb-reply-cell{white-space:normal;word-break:break-word;overflow-wrap:anywhere;color:#334155;font-size:12px;line-height:1.6}
@media(max-width:700px){
  .table-wrap{overflow-x:visible}
  .group-table{min-width:0 !important}
  .table-wrap table.mobile-cards thead{display:none}
  .table-wrap table.mobile-cards,.table-wrap table.mobile-cards tbody,.table-wrap table.mobile-cards tr{display:block;width:100%}
  .table-wrap table.mobile-cards tbody tr{background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(15,23,42,0.04)}
  .table-wrap table.mobile-cards tbody tr:last-child{margin-bottom:0}
  .table-wrap table.mobile-cards tbody td{display:flex;justify-content:flex-start;align-items:flex-start;gap:4px;width:100% !important;min-width:0 !important;max-width:none !important;padding:6px 0;border-bottom:1px solid #f1f5f9;text-align:left;white-space:normal !important;word-break:break-word;box-sizing:border-box}
  .table-wrap table.mobile-cards tbody td:last-child{border-bottom:0;padding-bottom:2px}
  .table-wrap table.mobile-cards tbody td::before{content:attr(data-label) "：";flex:0 0 auto;font-size:12px;font-weight:600;color:#64748b;text-align:left;line-height:1.5}
  .table-wrap table.mobile-cards tbody td.empty{display:block;text-align:center;padding:24px 12px;border-bottom:0}
  .table-wrap table.mobile-cards tbody td.empty::before{display:none;content:none}
  .table-wrap table.mobile-cards tbody td .ops-row{justify-content:flex-start}
  .table-wrap table.mobile-cards tbody td .actor-card,.table-wrap table.mobile-cards tbody td .msg-content-wrap{align-items:flex-start;text-align:left}
}
.user-menu{position:relative;display:flex;align-items:center}
.user-avatar-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:50%;background:#eef2ff;border:1px solid #c7d2fe;cursor:pointer;transition:all .15s ease}
.user-avatar-btn:hover{background:#e0e7ff;border-color:#a5b4fc}
.user-avatar-circle{font-size:14px;font-weight:700;color:#4355db;line-height:1;user-select:none}
.user-dropdown{position:absolute;top:calc(100% + 8px);right:0;min-width:150px;background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,0.12);padding:6px;z-index:120}
.user-dropdown[hidden]{display:none}
.user-dropdown-info{padding:6px 10px 8px;display:flex;flex-direction:column;gap:2px}
.user-dropdown-label{font-size:11px;color:#94a3b8}
.user-dropdown-name{font-size:13px;color:#0f172a;font-weight:600;word-break:break-all}
.user-dropdown-divider{height:1px;background:#f1f5f9;margin:2px 0 6px}
.user-dropdown-logout{width:100%;height:32px;justify-content:flex-start;padding:0 10px;background:transparent;color:#dc2626;font-size:13px;font-weight:500;border-radius:6px}
.user-dropdown-logout:hover{background:#fef2f2}
.mobile-load-more{display:none}
@keyframes mobileSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  .pagination.is-mobile-infinite{display:none !important}
  .mobile-load-more{display:flex;justify-content:center;align-items:center;padding:14px 0 4px;font-size:12px;color:#94a3b8;text-align:center;user-select:none}
  .mobile-load-more.is-clickable{color:#4355db;cursor:pointer}
  .mobile-load-box{display:inline-flex;align-items:center;gap:8px;background:#ffffff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 16px;color:#475569;font-size:12px;font-weight:500;box-shadow:0 2px 8px rgba(15,23,42,0.06)}
  .mobile-load-spinner{width:14px;height:14px;border:2px solid #e2e8f0;border-top-color:#5265de;border-radius:50%;animation:mobileSpin .7s linear infinite;flex-shrink:0}
}
.js-svg-chart{width:100%;min-height:190px;display:flex;align-items:center;justify-content:center}
.svg-line-chart{width:100%;height:auto;max-height:220px;display:block;overflow:visible}
.svg-axis-text{font-size:10px;fill:#94a3b8}
.svg-point-val{font-size:10px;font-weight:600;fill:#334155}
.svg-donut-wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%}
.svg-donut-chart{width:168px;height:168px;flex-shrink:0}
.svg-donut-total{font-size:22px;font-weight:700;fill:#0f172a}
.svg-donut-sub{font-size:11px;fill:#94a3b8}
.svg-donut-legend{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.svg-legend-row{display:flex;align-items:center;gap:8px;font-size:12px}
.svg-legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.svg-legend-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#475569}
.svg-legend-val{color:#0f172a;font-weight:600;white-space:nowrap}
@media(max-width:700px){
  .svg-donut-wrap{flex-direction:column;align-items:center;gap:14px}
  .svg-donut-legend{width:100%}
}
.pagination-modern{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid #edf0f6}
.pagination-modern .pagination-info{font-size:13px;color:#64748b;margin-right:2px}
.pagination-modern .pagination-controls{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.page-num-btn{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 8px;border-radius:6px;font-size:13px;color:#475569;text-decoration:none;background:transparent;border:1px solid transparent;transition:all .15s ease;box-sizing:border-box}
a.page-num-btn:hover{background:#eff2fe;color:#4355db}
.page-num-btn.is-active{background:#eef2ff;color:#4355db;border-color:#c7d2fe;font-weight:600}
.page-num-btn.is-disabled{color:#cbd5e1;cursor:not-allowed}
.page-arrow{font-size:16px;line-height:1}
.page-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:30px;color:#94a3b8;font-size:13px;user-select:none}
.pagination-modern .page-size-select-wrap{margin-left:6px}
.pagination-modern .page-size-select{height:30px !important;font-size:12px !important;padding:0 26px 0 10px !important;border-radius:6px !important;margin:0 !important}
.page-jump-wrap{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#64748b;margin-left:6px}
.page-jump-input{width:48px !important;height:30px !important;padding:0 6px !important;margin:0 !important;text-align:center;font-size:13px !important;border-radius:6px !important;background:#f8fafc}
.page-loading-box{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:200;display:inline-flex;align-items:center;gap:10px;background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 20px;box-shadow:0 12px 32px rgba(15,23,42,0.14);font-size:13px;font-weight:500;color:#334155}
.page-loading-box[hidden]{display:none}
.report-sort-form{display:flex;align-items:center;gap:8px;flex-shrink:0}
.report-sort-form select{width:auto;min-width:190px;margin:0}
@media(min-width:701px){
  .panel:has(> .pagination):not(.panel-follow-table){display:flex;flex-direction:column;min-height:calc(100vh - 300px)}
  .panel:has(> .pagination):not(.panel-follow-table) .table-wrap{flex:1;max-height:clamp(200px,calc(100vh - 440px),560px);overflow-y:auto}
  .panel:has(> .pagination):not(.panel-follow-table) .table-wrap thead th{position:sticky;top:0;z-index:2}
  .panel:has(> .pagination):not(.panel-follow-table) > .pagination{position:sticky;bottom:0;background:#ffffff;z-index:5;padding-bottom:4px;margin-top:auto}
}
