/* ============ Design tokens ============ */
:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --line: #eceef4;
  --line-strong: #e0e4ee;
  --text: #23293a;
  --text-2: #5f6880;
  --text-3: #929bad;
  --brand: #5a5bd6;
  --brand-soft: #edecfc;
  --brand-dark: #4748c4;
  --green: #1f9d63;
  --green-soft: #e2f6ec;
  --amber: #b07c0a;
  --amber-soft: #fbf3dd;
  --red: #e05252;
  --red-soft: #fcebeb;
  --purple: #8b6ae0;
  --purple-soft: #f2eefc;
  --cyan: #2a9dc2;
  --cyan-soft: #e6f5fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35, 41, 58, .03), 0 8px 28px -20px rgba(35, 41, 58, .16);
  --shadow-lg: 0 24px 72px -28px rgba(35, 41, 58, .28);
  --sidebar-w: 220px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
b, strong { font-weight: 550; }
h1, h2, h3, h4 { font-weight: 570; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  cursor: pointer; white-space: nowrap; transition: .15s; font-weight: 450;
}
.btn:hover { border-color: #c6cde0; background: #fafbfe; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.danger { color: var(--red); border-color: #f3c9c6; background: #fff; }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #f1f4fa; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  outline: none; transition: .15s;
}
.textarea { height: auto; padding: 8px 11px; min-height: 84px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-3); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); gap: 12px;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 530; }
.card-body { padding: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  letter-spacing: .1px;
  background: #f1f2f7; color: #6c7488;
  border: 1px solid transparent;
}
.badge.blue { background: var(--brand-soft); color: #5a5bd6; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: #d34545; }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.cyan { background: var(--cyan-soft); color: var(--cyan); }
.badge.gray { background: #f1f2f7; color: #6c7488; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.progress { height: 6px; border-radius: 999px; background: #edf0f7; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s; }

table.table { width: 100%; border-collapse: collapse; }
table.table th {
  text-align: left; font-size: 11.5px; color: #8590a6; font-weight: 530;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: #f8fafd;
  white-space: nowrap;
}
table.table td { padding: 13px 14px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: #f8faff; }

.empty { padding: 44px 16px; text-align: center; color: var(--text-3); }
.empty .big { font-size: 15px; color: var(--text-2); margin-bottom: 6px; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 60px;
  background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 48%, #0ea5e9 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%);
  border-radius: 50%;
}
.login-hero h1 { font-size: 34px; margin: 0 0 14px; letter-spacing: -.5px; }
.login-hero p { color: rgba(255,255,255,.82); line-height: 1.9; max-width: 420px; margin: 0; }
.hero-feats { display: grid; gap: 14px; margin-top: 34px; max-width: 430px; }
.hero-feat {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px; backdrop-filter: blur(4px);
}
.hero-feat b { display: block; margin-bottom: 3px; font-size: 13.5px; }
.hero-feat span { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.6; }
.hero-feat .ico { font-size: 17px; line-height: 1.2; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-box { width: 100%; max-width: 366px; }
.login-box h2 { font-size: 24px; margin: 0 0 6px; }
.login-box .sub { color: var(--text-3); margin-bottom: 28px; }
.login-tip {
  margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: #f7f9fd;
  border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--text-2); line-height: 1.85;
}
.login-tip code { background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); font-size: 12px; }
.login-err { color: var(--red); font-size: 13px; margin: -4px 0 12px; min-height: 18px; }

/* ============ 布局 ============ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: #fff; color: #4a5165;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 530;
  box-shadow: 0 4px 12px -4px rgba(90, 91, 214, .55);
}
.brand b { color: var(--text); font-size: 14.5px; letter-spacing: .1px; font-weight: 530; }
.brand small { display: block; color: var(--text-3); font-size: 10.5px; margin-top: 1px; }
.nav { padding: 4px 10px; display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav-title { font-size: 11px; color: var(--text-3); padding: 14px 10px 6px; letter-spacing: .5px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 8px;
  color: #4a5165; font-size: 13.5px; transition: .12s; position: relative; font-weight: 450;
}
.nav a:hover { background: #f3f4fa; color: var(--text); }
.nav a.active { background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(90, 91, 214, .6); }
.nav a.active .ico { opacity: 1; }
.nav a .ico { width: 17px; text-align: center; opacity: .75; }
.nav a .count {
  margin-left: auto; background: #f1f2f7; color: #6c7488; border-radius: 999px;
  padding: 0 7px; font-size: 11px; line-height: 18px;
}
.nav a.active .count { background: rgba(255,255,255,.22); color: #fff; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; }
.me .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 550; font-size: 12.5px; flex: 0 0 32px; }
.me .info b { display: block; color: var(--text); font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .info span { font-size: 11px; color: var(--text-3); }
.me button { margin-left: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 26px; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.topbar h2 { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -.2px; }
.topbar .crumb { color: var(--text-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.content { padding: 22px 26px 40px; max-width: 1440px; width: 100%; }

/* ============ 统计卡 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 15px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: .15s;
}
.stat:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -20px rgba(23, 32, 55, .24); }
.stat .label { color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 6px;
  font-weight: 550; letter-spacing: .2px; }
.stat .value { font-size: 27px; font-weight: 620; margin-top: 8px; letter-spacing: -.7px;
  font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; color: var(--text-3); font-weight: 500; margin-left: 3px; }
.stat .foot { margin-top: 7px; font-size: 12px; color: var(--text-3); }
.stat .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.stat.a-blue .accent { background: var(--brand); }
.stat.a-green .accent { background: var(--green); }
.stat.a-amber .accent { background: var(--amber); }
.stat.a-red .accent { background: var(--red); }
.stat.a-purple .accent { background: var(--purple); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}

/* ============ 独立看板页 ============ */
#page-content.board-full { max-width: none; padding: 14px 20px 20px; }
.board.board-lg {
  grid-template-columns: repeat(5, minmax(248px, 1fr));
  gap: 14px;
  min-height: calc(100vh - 62px - 74px);
}
.board.board-lg .board-col {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 62px - 74px);
  padding: 0;
  background: #eef1f7;
  border: 1px solid #e6eaf3;
  border-radius: 13px;
  overflow: hidden;
}
.board.board-lg .board-col.drag-over {
  background: #e3edff; border-color: #9dbdf9;
  box-shadow: inset 0 0 0 2px rgba(47, 107, 255, .35);
}
.board.board-lg .board-col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; font-size: 13px; font-weight: 550;
  background: #fff; border-bottom: 1px solid var(--line);
}
.board.board-lg .board-col-head .n {
  margin-left: auto; color: var(--text-2); font-weight: 530; font-size: 11.5px;
  background: #f0f3f9; border-radius: 999px; padding: 1px 8px; line-height: 18px;
}
.board-col-body { flex: 1; overflow-y: auto; min-height: 60px; padding: 10px; }
.board-col-body::-webkit-scrollbar { width: 6px; }
.board-col-body::-webkit-scrollbar-thumb { background: #ccd5e6; border-radius: 3px; }
.board-drop-hint {
  border: 1.5px dashed #c9d3e4; border-radius: 11px; padding: 22px 10px;
  text-align: center; font-size: 12px; color: #9aa4b8; background: rgba(255,255,255,.4);
}
.board.board-lg .tcard {
  padding: 12px 13px; margin-bottom: 10px; border-radius: 11px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 1px 2px rgba(23, 32, 55, .05);
}
.board.board-lg .tcard:last-child { margin-bottom: 0; }
.board.board-lg .tcard:hover {
  border-color: #c5d5f8;
  box-shadow: 0 10px 26px -16px rgba(47, 107, 255, .55);
  transform: translateY(-1px);
}
.board.board-lg .tcard .t-title { font-size: 13.5px; line-height: 1.55; font-weight: 530; }
.board.board-lg .tcard .t-meta { margin-top: 6px; gap: 8px; row-gap: 5px; }
.board.board-lg .tcard.dragging { opacity: .45; transform: scale(.98) rotate(1deg); }

@media (max-width: 1400px) {
  .board.board-lg { grid-template-columns: repeat(5, minmax(226px, 1fr)); }
}
@media (max-width: 1100px) {
  .board.board-lg { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .board.board-lg .board-col { max-height: none; }
}

/* ============ 任务看板（旧内嵌） ============ */
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.board-col { background: #eff2f8; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 120px; }
.board-col.drag-over { background: #e3ecff; border-color: #9cbcf8; }
.board-col-head { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; font-size: 13px; font-weight: 530; }
.board-col-head .n { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  margin-bottom: 9px; cursor: grab; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: .12s;
}
.tcard:hover { border-color: #bcd0f5; box-shadow: 0 8px 20px -14px rgba(37,99,235,.6); transform: translateY(-1px); }
.tcard .t-title { font-weight: 530; font-size: 13.5px; line-height: 1.5; margin-bottom: 7px; }
.tcard .t-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.pri { width: 3px; border-radius: 3px; align-self: stretch; }
.pri.urgent { background: var(--red); }
.pri.high { background: var(--amber); }
.pri.medium { background: var(--brand); }
.pri.low { background: #c7cedd; }

/* ============ 任务详情抽屉 ============ */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.36); z-index: 60;
  animation: fade .18s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 94vw); background: #fff;
  z-index: 61; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slideIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer-head h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }
.drawer-sec { margin-bottom: 24px; }
.drawer-sec h4 { font-size: 13px; color: var(--text-2); margin: 0 0 10px; font-weight: 530;
  display: flex; align-items: center; gap: 8px; }
.drawer-sec h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 13px; }
.kv .k { color: var(--text-3); }
.info-box { background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.8; white-space: pre-wrap; font-size: 13px; }

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
}
.tl-item .tl-head { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; flex-wrap: wrap; }
.tl-item .tl-head b { color: var(--text); font-size: 13px; }
.tl-item .tl-body { font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.hours-chip { background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 1px 7px; font-weight: 550; font-size: 12px; }

.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.comment .avatar { width: 28px; height: 28px; border-radius: 50%; background: #e8eefb; color: var(--brand);
  display: grid; place-items: center; font-size: 12px; font-weight: 530; flex: 0 0 28px; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-body b { font-size: 12.5px; }
.comment .c-body .time { color: var(--text-3); font-size: 11.5px; margin-left: 8px; }
.comment .c-body p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.42); z-index: 80;
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px;
  overflow-y: auto; animation: fade .16s ease;
}
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2,.8,.2,1);
}
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 20px 22px; max-height: 68vh; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ============ Toast ============ */
.toast-root {
  position: fixed; right: 22px; bottom: 26px; z-index: 200;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.toast {
  background: #1c2438; color: #fff; padding: 10px 18px; border-radius: 11px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: pop .18s ease; display: flex; align-items: center; gap: 8px;
  max-width: 340px; line-height: 1.5;
}
.toast.ok { background: #0e7a41; }
.toast.err { background: #c62f35; }

/* ============ 其他 ============ */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.seg { display: inline-flex; background: #eef1f7; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 13px; border-radius: 7px; cursor: pointer;
  color: var(--text-2); font-size: 13px; font-weight: 500; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }

.proj-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: .15s; }
.proj-card:hover { border-color: #c3d4f7; box-shadow: 0 14px 30px -22px rgba(37,99,235,.7); }
.proj-card .pc-top { display: flex; align-items: flex-start; gap: 10px; }
.proj-card h4 { margin: 0 0 4px; font-size: 15px; }
.proj-card .code { font-size: 12px; color: var(--text-3); }
.proj-card .desc { font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pc-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.pc-stats b { color: var(--text); font-size: 14px; }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.mini-bars .bar { flex: 1; background: linear-gradient(180deg,#8b8cec,#5a5bd6); border-radius: 5px 5px 2px 2px;
  min-height: 2px; position: relative; transition: .3s; }
.mini-bars .bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--text-3); white-space: nowrap; }

.hstack { display: flex; align-items: center; gap: 8px; }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; background: #e8eefb; color: var(--brand);
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 530; flex: 0 0 24px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.loading { padding: 40px; text-align: center; color: var(--text-3); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #cfd8e8;
  border-top-color: var(--brand); border-radius: 50%; animation: rot .7s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
.file-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 9px; background: #fff; }
.file-item .fi-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 15px; flex: 0 0 34px; }
.file-item .fi-main { flex: 1; min-width: 0; }
.file-item .fi-main b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-list { border: 1px solid var(--line); border-radius: 10px; max-height: 210px; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: none; }
.check-row:hover { background: #fafbff; }
.check-row input { width: 15px; height: 15px; accent-color: var(--brand); }
.chips-select { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer;
  font-size: 12.5px; background: #fff; }
.chip.on { background: var(--brand-soft); border-color: #b9cdf7; color: var(--brand-dark); font-weight: 530; }
