/* 掌柜365客服管理系统 - 深蓝科技风 */
:root {
  --bg0: #0a1226;
  --bg1: #0d1a38;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-brd: rgba(255, 255, 255, 0.09);
  --txt: #e8eefc;
  --txt2: #93a3c4;
  --orange: #f08c1e;
  --orange2: #ff9f3d;
  --red: #ff4d5e;
  --green: #2fd6a3;
  --blue: #3f8cff;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #16306b 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 110%, #142a5e 0%, transparent 50%),
              var(--bg0);
  color: var(--txt);
  min-height: 100vh;
}
.hidden { display: none !important; }
.muted { color: var(--txt2); font-size: 13px; line-height: 1.7; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }

/* ---------- 按钮 ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--orange2), var(--orange));
  color: #fff; border: none; border-radius: 10px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 18px rgba(240, 140, 30, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240, 140, 30, .5); }
.btn-ghost {
  background: var(--panel); color: var(--txt); border: 1px solid var(--panel-brd);
  border-radius: 10px; padding: 9px 18px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange2); }
.btn-danger-ghost { background: transparent; color: #ff8b96; border: 1px solid rgba(255,77,94,.35); border-radius: 10px; padding: 9px 18px; font-size: 13px; cursor: pointer; }
.btn-danger-ghost:hover { background: rgba(255,77,94,.12); }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.login-bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.login-bg-glow.g1 { width: 480px; height: 480px; background: rgba(63, 140, 255, .28); top: -120px; right: -80px; }
.login-bg-glow.g2 { width: 420px; height: 420px; background: rgba(240, 140, 30, .2); bottom: -140px; left: -100px; }
.login-card {
  width: 400px; padding: 44px 40px 30px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--panel-brd); backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45); position: relative; z-index: 2;
}
.login-logo { text-align: center; margin-bottom: 30px; }
.logo-badge { display: inline-block; filter: drop-shadow(0 6px 16px rgba(240,140,30,.4)); }
.login-logo-text { font-size: 34px; font-weight: 800; letter-spacing: 2px; margin-top: 10px; }
.login-logo-text span { color: var(--orange2); }
.login-logo-sub { color: var(--txt2); letter-spacing: 8px; font-size: 14px; margin-top: 6px; }
.form-item { margin-bottom: 16px; }
.form-item label { font-size: 13px; color: var(--txt2); display: block; margin-bottom: 6px; }
.form-item input, input[type=text], input[type=password], input[type=date], select, textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--panel-brd);
  border-radius: 10px; color: var(--txt); padding: 10px 13px; font-size: 14px; outline: none;
  transition: border-color .15s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
select option { background: #14244c; color: var(--txt); }
.login-err {
  background: rgba(63, 140, 255, .25); border: 1px solid rgba(255, 77, 94, .6);
  color: #ff9aa3; font-size: 13px; text-align: center; padding: 9px; border-radius: 9px; margin-bottom: 14px;
  animation: flashErr 1s steps(2) infinite;
}
@keyframes flashErr { 50% { background: rgba(255, 77, 94, .3); color: #fff; } }
@keyframes shake { 20%,60% { transform: translateX(-7px);} 40%,80% { transform: translateX(7px);} }
.login-card.shake { animation: shake .45s; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex-shrink: 0; padding: 20px 14px;
  background: rgba(10, 18, 38, .75); border-right: 1px solid var(--panel-brd);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; border-bottom: 1px solid var(--panel-brd); }
.side-logo-name { font-size: 20px; font-weight: 800; }
.side-logo-name span { color: var(--orange2); }
.side-logo-sub { font-size: 11px; color: var(--txt2); letter-spacing: 3px; }
.side-nav { flex: 1; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px;
  color: var(--txt2); font-size: 14px; text-decoration: none; cursor: pointer; transition: all .18s; border: 1px solid transparent;
}
.nav-item i { font-style: normal; font-size: 16px; }
.nav-item:hover { color: var(--txt); background: rgba(255,255,255,.05); }
.nav-item.active { background: linear-gradient(135deg, rgba(240,140,30,.22), rgba(240,140,30,.08)); color: var(--orange2); border-color: rgba(240,140,30,.4); font-weight: 600; }
.nav-item .ext { font-style: normal; font-size: 10px; color: var(--txt2); border: 1px solid var(--panel-brd); border-radius: 5px; padding: 1px 5px; margin-left: auto; }
.sync-badge { font-size: 11.5px; color: var(--txt2); background: rgba(255,255,255,.05); border: 1px solid var(--panel-brd); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; text-align: center; line-height: 1.4; }
.sync-badge.on { color: var(--green); border-color: rgba(47,214,163,.45); background: rgba(47,214,163,.1); }
.side-user { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--panel-brd); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #6db1ff); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.side-user-info { flex: 1; }
.side-user-info div:first-child { font-size: 14px; font-weight: 600; }
.side-user-info div:last-child { font-size: 11px; color: var(--txt2); }
.main { flex: 1; padding: 26px 30px; min-width: 0; }
.page { display: none; }
.page.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { font-size: 21px; font-weight: 700; }
.page-head h2 small { font-size: 12px; color: var(--txt2); font-weight: 400; }
.page-head-actions { display: flex; gap: 10px; align-items: center; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 10px; overflow: hidden; }
.seg-btn { background: transparent; border: none; color: var(--txt2); padding: 8px 18px; cursor: pointer; font-size: 13px; }
.seg-btn.active { background: var(--orange); color: #fff; font-weight: 600; }

/* ---------- 智能问答 ---------- */
.qa-hero { text-align: center; padding: 34px 0 22px; }
.qa-hero h1 { font-size: 30px; font-weight: 800; }
.qa-hero h1 span { color: var(--orange2); }
.qa-hero p { color: var(--txt2); margin: 10px 0 22px; }
.qa-search-box { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.qa-search-box input { flex: 1; padding: 14px 18px; font-size: 15px; border-radius: 12px; background: rgba(255,255,255,.08); }
.qa-hot { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.qa-hot span { font-size: 12px; color: var(--txt2); border: 1px solid var(--panel-brd); padding: 5px 12px; border-radius: 20px; cursor: pointer; transition: all .15s; }
.qa-hot span:hover { color: var(--orange2); border-color: var(--orange); }

.qa-result { max-width: 860px; margin: 0 auto 14px; background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 18px 20px; animation: fadeIn .25s; }
.qa-result.best { border-color: rgba(240, 140, 30, .55); box-shadow: 0 6px 26px rgba(240, 140, 30, .12); }
.qa-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.score-badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.score-badge.hi { background: rgba(240,140,30,.18); color: var(--orange2); border: 1px solid rgba(240,140,30,.5); }
.score-badge.mid { background: rgba(63,140,255,.14); color: #7db4ff; border: 1px solid rgba(63,140,255,.4); }
.score-badge.low { background: rgba(255,255,255,.06); color: var(--txt2); border: 1px solid var(--panel-brd); }
.qa-result-q { font-size: 14px; color: var(--txt2); margin-bottom: 8px; }
.qa-result-a { font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.qa-result-foot { display: flex; justify-content: flex-end; margin-top: 12px; gap: 8px; }
.qa-meta { font-size: 12px; color: var(--txt2); text-align: center; margin: 4px 0 18px; }

/* ---------- 筛选 & 表格 ---------- */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 130px; }
.filter-bar .dash { color: var(--txt2); }
.stat-chip { margin-left: auto; font-size: 13px; color: var(--orange2); font-weight: 600; }
.table-card { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; max-height: calc(100vh - 240px); overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 12px 14px; color: var(--txt2); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--panel-brd); background: rgba(255,255,255,.03); position: sticky; top: 0; backdrop-filter: blur(6px); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
tr:hover td { background: rgba(255,255,255,.03); }
.td-q, .td-a { max-width: 260px; }
.td-sub { font-size: 11.5px; color: var(--txt2); margin-top: 2px; letter-spacing: .2px; }
.td-q span, .td-a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.status-tag.已解决 { background: rgba(47,214,163,.15); color: var(--green); border: 1px solid rgba(47,214,163,.4); }
.status-tag.处理中 { background: rgba(63,140,255,.15); color: #7db4ff; border: 1px solid rgba(63,140,255,.4); }
.status-tag.未解决 { background: rgba(255,77,94,.15); color: #ff8b96; border: 1px solid rgba(255,77,94,.45); }
.op-btn { background: none; border: none; color: #7db4ff; cursor: pointer; font-size: 12.5px; padding: 2px 6px; }
.op-btn.danger { color: #ff8b96; }
.op-btn:hover { text-decoration: underline; }

/* ---------- 绩效看板 ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 18px 20px; }
.kpi-card .kpi-label { font-size: 12.5px; color: var(--txt2); }
.kpi-card .kpi-num { font-size: 34px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-num.c-orange { color: var(--orange2); } .kpi-num.c-green { color: var(--green); }
.kpi-num.c-red { color: var(--red); text-shadow: 0 0 22px rgba(255, 77, 94, .45); } .kpi-num.c-blue { color: #7db4ff; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.agent-card { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s; cursor: pointer; }
.agent-card:hover { border-color: rgba(240,140,30,.4); transform: translateY(-2px); }
.agent-more { margin-top: 10px; font-size: 12px; color: var(--orange2); opacity: .85; }
.agent-card:hover .agent-more { opacity: 1; }

/* 工单详情 / 看板明细 */
.detail-title { display: flex; align-items: center; gap: 10px; margin: -6px 0 12px; font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: rgba(255,255,255,.03); border: 1px solid var(--panel-brd); border-radius: 12px; padding: 13px 15px; }
.detail-grid label { display: block; font-size: 11.5px; color: var(--txt2); margin-bottom: 3px; }
.detail-grid b { font-size: 13.5px; font-weight: 500; word-break: break-all; }
.detail-sec { margin-top: 14px; }
.detail-sec > label { display: block; font-size: 12px; color: var(--txt2); margin-bottom: 6px; }
.detail-text { font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; background: rgba(255,255,255,.03); border: 1px solid var(--panel-brd); border-radius: 10px; padding: 10px 13px; max-height: 220px; overflow-y: auto; }
.detail-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.detail-imgs img { width: 82px; height: 82px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); display: block; }
.detail-empty { font-size: 12px; color: var(--txt2); margin-top: 6px; }
.agent-rec-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--panel-brd); border-radius: 12px; }
.agent-rec { padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.agent-rec:last-child { border-bottom: none; }
.ar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ar-q { font-size: 12.5px; color: var(--txt2); margin: 4px 0 3px; line-height: 1.6; }
.ar-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--txt2); }
.ar-foot .op-btn { margin-left: auto; }

/* 操作日志 */
.date-row td { background: rgba(240,140,30,.09); color: var(--orange2); font-size: 12.5px; font-weight: 500; letter-spacing: .3px; }
.audit-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 20px; border: 1px solid rgba(125,180,255,.35); color: #7db4ff; background: rgba(63,140,255,.12); white-space: nowrap; }
.audit-detail { max-width: 420px; word-break: break-all; }
.agent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.agent-head .avatar { width: 34px; height: 34px; font-size: 14px; }
.agent-head b { font-size: 15px; }
.agent-head .rate { margin-left: auto; font-size: 13px; color: var(--green); font-weight: 700; }
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.as-item { text-align: center; background: rgba(255,255,255,.04); border-radius: 9px; padding: 9px 4px; }
.as-item .v { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.as-item .l { font-size: 11px; color: var(--txt2); margin-top: 2px; }
.as-item.bad .v { color: var(--red); }
.as-item.good .v { color: var(--green); }
.as-item.total .v { color: var(--orange2); }

/* ---------- 数据管理 ---------- */
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 16px; margin-bottom: 10px; }
.data-count { font-size: 13px; color: var(--orange2); font-weight: 600; margin-top: 6px; }
.data-preview { margin-top: 10px; max-height: 180px; overflow-y: auto; font-size: 12.5px; color: var(--txt2); line-height: 1.9; }
.data-preview div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Logo 图片 ---------- */
.logo-img { border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.logo-img.big { width: 84px; height: 84px; }
.logo-img.sm { width: 36px; height: 36px; border-radius: 9px; }

/* ---------- 资料库 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.doc-item { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--panel-brd); border-radius: 12px; padding: 13px 15px; text-decoration: none; color: var(--txt); transition: all .18s; }
.doc-item:hover { border-color: var(--orange); transform: translateY(-2px); }
.doc-icon { font-size: 26px; flex-shrink: 0; }
.doc-item b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.doc-item small { color: var(--txt2); font-size: 11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-src { font-size: 10.5px; color: var(--orange2); border: 1px solid rgba(240,140,30,.4); border-radius: 5px; padding: 0 5px; margin-left: 6px; }

/* ---------- 弹窗 / Toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(4, 8, 20, .68); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn .18s; }
.modal { width: 560px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: linear-gradient(165deg, #14224a, #0e1a3c); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px 28px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.modal .form-item textarea { min-height: 76px; resize: vertical; }

/* 工单图片上传 */
.img-field { border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px; transition: border-color .18s, background .18s; }
.img-field.drag { border-color: var(--orange); background: rgba(240,140,30,.08); }
.img-field textarea { width: 100%; border: none; background: transparent; padding: 0; min-height: 66px; outline: none; resize: vertical; color: var(--txt); font-family: inherit; font-size: 13.5px; line-height: 1.65; }
.img-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.img-add { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--orange); border: 1px solid rgba(240,140,30,.45); border-radius: 8px; padding: 5px 11px; cursor: pointer; user-select: none; }
.img-add:hover { background: rgba(240,140,30,.14); }
.img-tip { font-size: 11.5px; color: var(--txt2); }
.img-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.img-thumb { position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 15px; text-align: center; border: none; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; cursor: pointer; padding: 0; }
.img-del:hover { background: var(--red); }
/* 列表里的缩略图 */
.mini-imgs { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
.mini-imgs img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; border: 1px solid rgba(255,255,255,.15); display: block; }
.mini-imgs .more { font-size: 11px; color: var(--txt2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-foot .btn-cancel { background: var(--panel); border: 1px solid var(--panel-brd); color: var(--txt2); border-radius: 10px; padding: 10px 20px; cursor: pointer; }

/* 客户名称联想 */
.ac-wrap { position: relative; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #16254e; border: 1px solid rgba(240,140,30,.35); border-radius: 10px; z-index: 30; max-height: 210px; overflow-y: auto; box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.ac-list div { padding: 8px 13px; font-size: 13.5px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.ac-list div:hover, .ac-list div.sel { background: rgba(240,140,30,.18); }
.ac-list .t { color: var(--txt2); font-size: 11.5px; }
.ac-list small { display: block; color: var(--txt2); font-size: 11.5px; margin-top: 2px; }

/* ---------- 客户档案卡（新建记录时自动带出） ---------- */
.cust-card { background: rgba(63,140,255,.07); border: 1px solid rgba(63,140,255,.28); border-radius: 12px; padding: 13px 15px; }
.cust-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.cust-card-head #ciTitle { font-size: 14px; font-weight: 600; color: #fff; }
.cust-badge { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: rgba(47,214,163,.16); color: #2fd6a3; border: 1px solid rgba(47,214,163,.35); }
.ci-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.ci-grid > div { display: flex; flex-direction: column; gap: 3px; }
.ci-grid label { font-size: 11.5px; color: var(--txt2); }
.ci-grid b { font-size: 13.5px; color: var(--txt); font-weight: 500; word-break: break-all; }
@media (max-width: 900px) { .ci-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 上传类型选择 ---------- */
.kind-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.kind-card {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--panel-brd);
  transition: border-color .15s, background .15s, transform .15s;
}
.kind-card:hover { border-color: rgba(240,140,30,.6); background: rgba(240,140,30,.08); transform: translateY(-1px); }
.kind-icon { font-size: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 11px; background: rgba(63,140,255,.14); border: 1px solid rgba(63,140,255,.3); flex: none; }
.kind-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kind-body b { font-size: 14.5px; color: #fff; }
.kind-body small { font-size: 12px; color: var(--txt2); line-height: 1.6; }
.kind-go { margin-left: auto; font-size: 12.5px; color: var(--orange); white-space: nowrap; flex: none; }

#toastRoot { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: rgba(20, 34, 74, .95); border: 1px solid rgba(240,140,30,.5); color: var(--txt); font-size: 13.5px; padding: 10px 22px; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.45); animation: fadeIn .2s; }
.toast.ok { border-color: rgba(47,214,163,.5); }

@media (max-width: 900px) {
  .sidebar { width: 66px; padding: 14px 8px; }
  .side-logo-text, .side-logo-sub, .side-logo-name, .side-logo-sub, .side-user-info, .nav-item .ext { display: none; }
  .nav-item { justify-content: center; padding: 12px 6px; }
  .nav-item i { font-size: 19px; }
  .main { padding: 18px 14px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
