/* =============================================================
 * ATELIER.26 · ADMIN / ERP 控制台
 * 参考轻量 ERP 后台模板：深色侧栏 + 浅灰工作区 + 密集数据卡片
 * ============================================================= */
:root {
  --a-bg: #f3f5f7;
  --a-panel: #ffffff;
  --a-ink: #1c2024;
  --a-ink-2: #3d444c;
  --a-muted: #8a929b;
  --a-line: #e5e9ee;
  --a-line-2: #eef1f4;
  --a-side: #181b20;
  --a-side-2: #22262d;
  --a-lime: #ff7aa8;       /* 主强调：玫粉（原柠黄绿，按品牌要求去除绿色） */
  --a-pink: #ff7aa8;
  --a-pink-deep: #d62f63;
  --a-blue: #3b6ef5;
  --a-red: #f0364f;
  --a-green: #2e8b62;      /* 仅状态语义色（现货 / 已到货），非品牌色 */
  --a-amber: #d9902b;
  --a-radius: 10px;
  --a-side-w: 236px;
  --a-top-h: 62px;
}

body.admin { background: var(--a-bg); color: var(--a-ink); font-size: 13px; }
/* 通知浮层落在顶栏下方，避免遮挡搜索框与角色 / 退出菜单 */
body.admin .app-toast-stack { top: calc(var(--a-top-h) + 14px); }
.admin .form-control, .admin .form-select { border-color: var(--a-line); border-radius: 6px; font-size: 12.5px; }
.admin .form-control:focus, .admin .form-select:focus { border-color: var(--a-ink); }
.admin .form-label, .admin label { font-size: 11.5px; font-weight: 600; color: var(--a-ink-2); }
.admin .modal-content { border: 0; border-radius: 12px; box-shadow: 0 30px 80px rgba(20,25,30,.22); }
.admin .modal-header, .admin .modal-footer { border-color: var(--a-line); }
.admin .modal-title { font-size: 15px; font-weight: 700; }

/* ---------------------------- 侧栏 ---------------------------- */
.a-side {
  position: fixed; inset: 0 auto 0 0; width: var(--a-side-w); z-index: 80;
  background: var(--a-side); color: #d5d9de; display: flex; flex-direction: column;
  transition: transform .3s var(--ease);
}
.a-side__brand { height: var(--a-top-h); display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.a-side__mark { width: 31px; height: 31px; background: var(--a-lime); color: var(--a-side); border-radius: 7px; display: grid; place-items: center; font-family: var(--font-en); font-weight: 800; font-size: 14px; }
.a-side__brand b { font-family: var(--font-en); font-size: 16px; letter-spacing: -.03em; color: #fff; display: block; line-height: 1; }
.a-side__brand small { font-size: 8.5px; letter-spacing: .18em; color: #7d858e; }
.a-side__brand--cn b { font-family: var(--font-cn); font-size: 12.5px; letter-spacing: -.01em; }
.a-side__brand--cn .a-side__mark { font-family: var(--font-cn); font-size: 15px; }
.a-side__scroll { flex: 1; overflow-y: auto; padding: 18px 12px; }
.a-side__scroll::-webkit-scrollbar { width: 4px; }
.a-side__scroll::-webkit-scrollbar-thumb { background: #3a4048; }
.a-side__group { font-size: 9.5px; letter-spacing: .17em; color: #6f7882; padding: 16px 12px 8px; font-family: var(--font-en); font-weight: 600; }
.a-side__link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 7px;
  color: #aab1b9; font-size: 12.5px; font-weight: 500; margin-bottom: 2px;
  transition: background .2s, color .2s; position: relative;
}
.a-side__link i { font-size: 16px; width: 19px; text-align: center; }
.a-side__link:hover { background: var(--a-side-2); color: #fff; }
.a-side__link.active { background: #2b3038; color: #fff; font-weight: 600; }
.a-side__link.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; background: var(--a-lime); border-radius: 3px; }
.a-side__link .badge { margin-left: auto; font-size: 9.5px; background: var(--a-red); padding: 3px 6px; border-radius: 20px; font-weight: 600; }
.a-side__link .badge.lime { background: var(--a-lime); color: var(--a-side); }
.a-side__foot { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 16px; }
.a-side__user { display: flex; align-items: center; gap: 10px; }
.a-side__avatar { width: 32px; height: 32px; border-radius: 8px; background: #3d4650; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.a-side__user b { display: block; font-size: 12px; color: #fff; }
.a-side__user span { font-size: 10px; color: #7d858e; }
.a-side__back { display: block; margin-top: 12px; font-size: 11px; color: #8d959e; }
.a-side__back:hover { color: var(--a-lime); }
.a-side-mask { display: none; }

/* ---------------------------- 顶栏 ---------------------------- */
.a-main { margin-left: var(--a-side-w); min-height: 100vh; }
.a-top {
  height: var(--a-top-h); background: #fff; border-bottom: 1px solid var(--a-line);
  display: flex; align-items: center; gap: 16px; padding: 0 26px;
  position: sticky; top: 0; z-index: 60;
}
.a-top__title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.a-top__crumb { font-size: 11px; color: var(--a-muted); }
.a-top__spacer { flex: 1; }
.a-top__search { position: relative; width: 220px; }
.a-top__search i { position: absolute; left: 11px; top: 9px; color: var(--a-muted); font-size: 14px; }
.a-top__search input { padding-left: 32px; height: 34px; background: var(--a-bg); border: 1px solid transparent; }
.a-top__search input:focus { background: #fff; border-color: var(--a-line); }
.a-top__icon { width: 34px; height: 34px; border: 1px solid var(--a-line); background: #fff; border-radius: 8px; display: grid; place-items: center; position: relative; color: var(--a-ink-2); font-size: 15px; }
.a-top__icon:hover { background: var(--a-bg); }
.a-top__icon .dot { position: absolute; right: 7px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--a-red); border: 1px solid #fff; }
.a-role-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--a-line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; }
.a-role-btn .sq { width: 22px; height: 22px; border-radius: 6px; background: var(--a-ink); color: var(--a-lime); display: grid; place-items: center; font-size: 11px; }
.a-top-toggle { display: none; }
.a-content { padding: 24px 26px 60px; }

/* ---------------------------- 页面标题 ---------------------------- */
.a-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.a-pagehead h1 { font-size: 22px; font-weight: 750; letter-spacing: -.03em; margin: 0 0 5px; }
.a-pagehead p { font-size: 12px; color: var(--a-muted); margin: 0; }
.a-pagehead .eyebrow { color: var(--a-muted); font-size: 9.5px; letter-spacing: .18em; display: block; margin-bottom: 7px; }

/* ---------------------------- 卡片 ---------------------------- */
.a-card { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--a-radius); overflow: hidden; }
.a-card__head { padding: 16px 20px; border-bottom: 1px solid var(--a-line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-card__head h3 { font-size: 14px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.a-card__head .sub { font-size: 10.5px; color: var(--a-muted); margin-top: 2px; }
.a-card__body { padding: 20px; }
.a-card__body.flush { padding: 0; }

.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--a-line); background: #fff; color: var(--a-ink);
  border-radius: 6px; padding: 8px 13px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.a-btn:hover { border-color: #c9ced5; background: var(--a-bg); }
.a-btn--dark { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.a-btn--dark:hover { background: #333a42; border-color: #333a42; color: #fff; }
.a-btn--lime { background: var(--a-lime); border-color: var(--a-lime); color: var(--a-ink); }
.a-btn--lime:hover { background: #f45c92; border-color: #f45c92; }
.a-btn--ghost { background: transparent; }
.a-btn--sm { padding: 5px 9px; font-size: 11px; }
.a-btn.active { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.a-btn:disabled { opacity: .45; cursor: not-allowed; }
.a-btn--danger { color: var(--a-red); border-color: #f2cec8; }
.a-btn--danger:hover { background: #fff2f0; }

/* ---------------------------- KPI ---------------------------- */
.a-kpi { background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 18px 20px 16px; position: relative; overflow: hidden; }
.a-kpi__label { font-size: 11px; color: var(--a-muted); display: flex; align-items: center; gap: 7px; }
.a-kpi__label i { font-size: 14px; color: var(--a-ink-2); }
.a-kpi__value { font-family: var(--font-en); font-size: 30px; font-weight: 700; letter-spacing: -.045em; margin: 10px 0 4px; line-height: 1; }
.a-kpi__value small { font-size: 12px; font-weight: 500; color: var(--a-muted); margin-left: 4px; letter-spacing: 0; }
.a-kpi__foot { font-size: 10.5px; color: var(--a-muted); display: flex; align-items: center; gap: 6px; }
.a-kpi__foot .up { color: var(--a-green); font-weight: 700; }
.a-kpi__foot .down { color: var(--a-red); font-weight: 700; }
.a-kpi__spark { position: absolute; right: 12px; bottom: 12px; opacity: .85; }

/* ---------------------------- 表格 ---------------------------- */
.a-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.a-table th {
  background: #fafbfc; color: var(--a-muted); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: 11px 16px; border-bottom: 1px solid var(--a-line); white-space: nowrap;
}
.a-table td { padding: 12px 16px; border-bottom: 1px solid var(--a-line-2); vertical-align: middle; }
.a-table tbody tr { transition: background .18s; }
.a-table tbody tr:hover { background: #fafbfc; }
.a-table tbody tr:last-child td { border-bottom: 0; }
.a-table .thumb { width: 38px; height: 46px; object-fit: cover; border-radius: 5px; background: #e8e6e0; }
.a-table .sku { font-family: var(--font-en); font-size: 11px; color: var(--a-muted); letter-spacing: .02em; }
.a-table .name { font-weight: 600; font-size: 12.5px; }
.a-table .money { font-family: var(--font-en); font-weight: 700; }
.a-table .right { text-align: right; }
.a-table .nowrap { white-space: nowrap; }
.a-stockbar { width: 84px; height: 5px; border-radius: 5px; background: var(--a-line); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.a-stockbar i { display: block; height: 100%; border-radius: 5px; }

.a-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.a-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.a-pill--green { background: #e8f5ee; color: var(--a-green); }
.a-pill--amber { background: #fdf3e3; color: var(--a-amber); }
.a-pill--red { background: #fdeeeb; color: var(--a-red); }
.a-pill--blue { background: #ebf1fe; color: var(--a-blue); }
.a-pill--grey { background: #f0f2f4; color: #7c848d; }
.a-pill--dark { background: #e9ebee; color: var(--a-ink); }

.a-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--a-line); margin-bottom: 20px; }
.a-tabs button { border: 0; background: transparent; padding: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--a-muted); position: relative; }
.a-tabs button.active { color: var(--a-ink); }
.a-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--a-ink); }
.a-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.a-toolbar .search { position: relative; width: 220px; }
.a-toolbar .search i { position: absolute; left: 11px; top: 9px; color: var(--a-muted); font-size: 13px; }
.a-toolbar .search input { padding-left: 32px; }
.a-toolbar .form-select { width: auto; min-width: 128px; }

/* ---------------------------- 图表 ---------------------------- */
.a-chart-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.a-chart-legend span { font-size: 10.5px; color: var(--a-muted); display: flex; align-items: center; gap: 6px; }
.a-chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.chart-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawLine 1.5s var(--ease) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.chart-dot { opacity: 0; animation: fadeDot .4s var(--ease) forwards; }
@keyframes fadeDot { to { opacity: 1; } }

/* ---------------------------- 设计企划卡 ---------------------------- */
/* ---------------- 设计企划卡：杂志式企划档案 ---------------- */
.ds-card { border: 1px solid var(--a-line); border-radius: var(--a-radius); overflow: hidden; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.ds-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(28,32,36,.11); border-color: rgba(255,122,168,.5); }
.ds-card__cover { position: relative; height: 176px; overflow: hidden; background: #ded8cb; }
.ds-card__cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ds-card:hover .ds-card__cover > img { transform: scale(1.06); }
/* 设计稿纹样：细网格 + 斜纹 + 渐隐，替代原粗糙色点 */
.ds-card__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,20,24,.04) 0%, rgba(20,20,24,.12) 42%, rgba(20,20,24,.78) 100%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.13) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.13) 23px 24px);
}
.ds-card__pattern::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.05) 11px 12px); }
.ds-card__cross { position: absolute; z-index: 2; width: 13px; height: 13px; opacity: .75; }
.ds-card__cross::before, .ds-card__cross::after { content: ''; position: absolute; background: rgba(255,255,255,.85); }
.ds-card__cross::before { left: 0; top: 6px; width: 13px; height: 1px; }
.ds-card__cross::after { left: 6px; top: 0; width: 1px; height: 13px; }
.ds-card__cross--tl { left: 14px; top: 14px; }
.ds-card__cross--br { right: 14px; bottom: 16px; }
.ds-card__index { position: absolute; z-index: 2; left: 34px; top: 13px; font-family: var(--font-en); font-size: 8.5px; font-weight: 600; letter-spacing: .2em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.ds-card__season { position: absolute; z-index: 2; right: 14px; top: 12px; background: rgba(255,255,255,.94); color: var(--a-ink); font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .12em; padding: 4px 9px; border-radius: 3px; }
.ds-card__coverfoot { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 13px; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; }
.ds-card__coverfoot small { font-family: var(--font-en); font-size: 8.5px; letter-spacing: .16em; opacity: .85; }
.ds-card__coverfoot b { font-family: var(--font-en); font-size: 13px; letter-spacing: .04em; }
.ds-card__body { padding: 15px 16px 14px; }
.ds-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ds-card__code { font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--a-muted); }
.ds-card__body h4 { font-size: 14px; font-weight: 700; margin: 8px 0 5px; letter-spacing: -.01em; }
.ds-card__note { font-size: 11px; color: var(--a-muted); line-height: 1.6; min-height: 34px; margin: 0 0 12px; }
.ds-card__palette-head { display: flex; justify-content: space-between; font-family: var(--font-en); font-size: 8.5px; letter-spacing: .14em; color: var(--a-muted); margin-bottom: 6px; }
.ds-card__palette-head b { color: var(--a-ink); }
.ds-card__palette { display: flex; border: 1px solid var(--a-line); border-radius: 3px; overflow: hidden; }
.ds-swatch { position: relative; flex: 1; min-width: 0; height: 32px; }
.ds-swatch + .ds-swatch { border-left: 1px solid rgba(255,255,255,.6); }
.ds-swatch i { display: block; width: 100%; height: 100%; background: var(--sw); transition: transform .3s var(--ease); }
.ds-swatch:hover i { transform: scaleY(1.08); }
.ds-swatch small { position: absolute; right: 3px; bottom: 3px; font-family: var(--font-en); font-size: 6.5px; letter-spacing: .03em; color: #fff; background: rgba(20,22,26,.58); padding: 1px 3px; border-radius: 2px; }
.ds-card__progress { margin-top: 14px; }
.ds-card__progress-top { display: flex; justify-content: space-between; font-family: var(--font-en); font-size: 8.5px; letter-spacing: .12em; color: var(--a-muted); margin-bottom: 6px; }
.ds-card__progress-top b { color: var(--a-ink); font-size: 11px; }
.ds-track { height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--a-line) 0 10px, transparent 10px 13px); overflow: hidden; }
.ds-track i { display: block; height: 100%; background: var(--a-pink); border-radius: 4px; transition: width .9s var(--ease); }
.ds-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--a-line); font-size: 10px; color: var(--a-muted); }
.ds-card__upload { border: 0; background: transparent; color: var(--a-pink-deep); font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 4px; white-space: nowrap; transition: background .2s, color .2s; }
.ds-card__upload:hover:not(:disabled) { background: rgba(255,122,168,.14); }
.ds-card__upload:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- 设计图上传弹窗 ---------------- */
.ds-drop { position: relative; min-height: 242px; border: 1px dashed #c9d0d8; border-radius: 10px; background: #fafbfc; display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.ds-drop:hover, .ds-drop.is-over { border-color: var(--a-pink); background: rgba(255,122,168,.06); }
.ds-drop.is-over { transform: scale(1.01); }
.ds-drop__empty { text-align: center; padding: 26px; pointer-events: none; }
.ds-drop__empty > i { display: block; font-size: 34px; color: var(--a-pink-deep); margin-bottom: 12px; }
.ds-drop__empty b { display: block; font-size: 13px; margin-bottom: 6px; }
.ds-drop__empty span { display: block; font-size: 10.5px; color: var(--a-muted); }
.ds-drop__preview { position: absolute; inset: 0; background: #f8f9fb; }
.ds-drop__preview img { width: 100%; height: 100%; object-fit: contain; }
.ds-drop__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 12px; background: linear-gradient(0deg, rgba(20,22,26,.82), transparent); color: #fff; }
.ds-drop__meta b { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-drop__meta span { font-size: 9.5px; opacity: .8; }
.ds-drop__remove { position: absolute; right: 9px; top: 9px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: rgba(20,22,26,.72); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.ds-drop__remove:hover { background: var(--a-red); }
.ds-progress { height: 3px; background: var(--a-line); border-radius: 3px; margin-top: 9px; overflow: hidden; }
.ds-progress i { display: block; height: 100%; width: 0; background: var(--a-pink); transition: width .35s var(--ease); }

/* 兼容旧页面可能引用的通用进度条 */
.a-progress { height: 5px; border-radius: 5px; background: var(--a-line); overflow: hidden; }
.a-progress i { display: block; height: 100%; background: var(--a-ink); border-radius: 5px; transition: width .9s var(--ease); }

/* ---------------------------- 饰品卡 ---------------------------- */
.a-acc-card { background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.a-acc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,32,36,.08); }
.a-acc-card__img { aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #eeece7; }
.a-acc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.a-acc-card:hover .a-acc-card__img img { transform: scale(1.05); }
.a-acc-card__badge { position: absolute; top: 10px; left: 10px; }
.a-acc-card__body { padding: 13px 14px 14px; }
.a-acc-card__body h4 { font-size: 12.5px; font-weight: 650; margin: 0 0 3px; }
.a-acc-card__sku { font-family: var(--font-en); font-size: 10px; color: var(--a-muted); }
.a-acc-card__row { display: flex; justify-content: space-between; align-items: center; margin: 11px 0; font-size: 11.5px; }
.a-acc-card__row b { font-family: var(--font-en); font-size: 15px; }
.a-acc-card__acts { display: flex; gap: 6px; }
.a-acc-card__acts .a-btn { flex: 1; }

/* ---------------------------- 协同看板 ---------------------------- */
.a-member-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.a-member { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; padding: 7px 11px; position: relative; }
.a-member__av { width: 27px; height: 27px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.a-member b { font-size: 11.5px; display: block; line-height: 1.2; }
.a-member span { font-size: 9.5px; color: var(--a-muted); }
.a-member .on { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #46b477; }
.kb { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kb-col { background: #eef1f4; border-radius: 9px; padding: 10px; min-height: 340px; transition: background .2s; }
.kb-col.is-over { background: #e0e8d4; outline: 1px dashed #9ab85a; }
.kb-col.is-mine { box-shadow: inset 0 0 0 1px var(--a-lime); }
.kb-col__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.kb-col__head b { font-size: 11.5px; font-weight: 700; }
.kb-col__head span { font-family: var(--font-en); font-size: 10px; background: #fff; color: var(--a-muted); padding: 2px 7px; border-radius: 20px; }
.kb-col__head i { font-size: 9px; color: var(--a-muted); font-style: normal; }
.kb-card { background: #fff; border: 1px solid var(--a-line); border-radius: 7px; padding: 12px; margin-bottom: 9px; cursor: grab; transition: box-shadow .2s, transform .2s; }
.kb-card:hover { box-shadow: 0 6px 16px rgba(28,32,36,.09); transform: translateY(-1px); }
.kb-card:active { cursor: grabbing; }
.kb-card.is-dragging { opacity: .45; }
.kb-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kb-card__id { font-family: var(--font-en); font-size: 9.5px; color: var(--a-muted); }
.kb-card__title { font-size: 12px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.kb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kb-card__owner { font-size: 10px; color: var(--a-muted); display: flex; align-items: center; gap: 5px; }
.kb-card__owner i { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 8px; font-style: normal; }
.kb-card__next { border: 0; background: #f2f4f6; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; color: var(--a-ink-2); }
.kb-card__next:hover { background: var(--a-lime); }
.kb-pri { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.kb-pri.high { background: var(--a-red); }
.kb-pri.mid { background: var(--a-amber); }
.kb-pri.low { background: #9aa3ac; }

.a-feed { display: flex; flex-direction: column; gap: 0; }
.a-feed__row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--a-line-2); }
.a-feed__av { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; background: #e9edf1; color: var(--a-ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.a-feed__row.log .a-feed__av { background: #eaf3e9; color: var(--a-green); }
.a-feed__body { flex: 1; }
.a-feed__body b { font-size: 11.5px; }
.a-feed__body span { font-size: 10px; color: var(--a-muted); margin-left: 6px; }
.a-feed__body p { font-size: 11.5px; color: var(--a-ink-2); line-height: 1.6; margin: 3px 0 0; }
.a-feed__time { font-family: var(--font-en); font-size: 10px; color: var(--a-muted); white-space: nowrap; }
.a-approval { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--a-line-2); }
.a-approval__body { flex: 1; min-width: 0; }
.a-approval__body b { font-size: 11.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-approval__body span { font-size: 10px; color: var(--a-muted); }

/* ---------------------------- 其它 ---------------------------- */
.a-empty { text-align: center; padding: 44px 16px; color: var(--a-muted); font-size: 12px; }
.a-empty i { font-size: 26px; display: block; margin-bottom: 8px; }
.a-hint { background: #fffbec; border: 1px solid #f3e6ba; border-radius: 8px; padding: 10px 14px; font-size: 11.5px; color: #8b6f23; display: flex; align-items: center; gap: 9px; }
.a-hint i { font-size: 15px; }
.a-timeline { position: relative; padding-left: 20px; }
.a-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--a-line); }
.a-timeline__item { position: relative; padding: 0 0 16px; }
.a-timeline__item::before { content: ''; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--a-lime); border: 1px solid #d95c8b; }
.a-timeline__item b { font-size: 11.5px; }
.a-timeline__item p { font-size: 10.5px; color: var(--a-muted); margin: 2px 0 0; }

@media (max-width: 1100px) {
  :root { --a-side-w: 204px; }
  .a-top__search { width: 160px; }
}
@media (max-width: 900px) {
  .a-side { transform: translateX(-100%); }
  .a-side.is-open { transform: none; }
  .a-side-mask.is-open { display: block; position: fixed; inset: 0; background: rgba(15,18,22,.4); z-index: 70; }
  .a-main { margin-left: 0; }
  .a-top-toggle { display: grid; }
  .a-content { padding: 18px 16px 50px; }
  .a-top { padding: 0 16px; }
  .a-top__search { display: none; }
}
