/* ================================================================
   管理控制台
   ================================================================ */
.mode-admin .brand-mark {
    background: linear-gradient(145deg, rgba(255, 182, 72, .18), rgba(255, 182, 72, .04));
    border-color: rgba(255, 182, 72, .38);
    box-shadow: 0 0 24px rgba(255, 182, 72, .14);
}
.mode-admin .brand-rule { background: linear-gradient(90deg, rgba(255, 182, 72, .45), rgba(126, 170, 214, .05)); }
.mode-admin .brand-rule span { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.mode-admin .nav-group.is-open .nav-group-head > i:first-child { color: var(--amber); }
.mode-admin .nav-item.is-active {
    background: linear-gradient(90deg, rgba(255, 182, 72, .13), rgba(255, 182, 72, .02) 70%, transparent);
    box-shadow: inset 0 0 0 1px rgba(255, 182, 72, .16);
}
.mode-admin .nav-item.is-active::before { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.mode-admin .nav-item.is-active > i:first-child { color: var(--amber); }
.mode-admin .card::before { background: linear-gradient(90deg, var(--amber), rgba(255, 182, 72, 0)); box-shadow: 0 0 12px rgba(255, 182, 72, .4); }
.admin-tag {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px;
    background: rgba(255, 182, 72, .1); border: 1px solid rgba(255, 182, 72, .24); color: var(--amber);
    font-size: 10px; letter-spacing: .1em; font-family: var(--mono);
}

/* 权限矩阵 */
.perm-matrix { display: grid; grid-template-columns: 160px repeat(2, minmax(0, 1fr)); gap: 8px 14px; align-items: center; }
.perm-group-title { grid-column: 1 / -1; font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; padding-top: 10px; border-top: 1px dashed rgba(126, 170, 214, .1); margin-top: 4px; }
.perm-row { display: contents; }
.perm-label { font-size: 12px; color: var(--text-2); padding: 6px 0; }
.perm-check { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-3); }
.perm-check input { accent-color: var(--cyan); width: 14px; height: 14px; }
.perm-note { font-size: 10.5px; color: var(--text-4); }

/* 字典双栏 */
.dict-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; align-items: start; }
.dict-types { padding: 8px; display: flex; flex-direction: column; gap: 3px; max-height: 640px; overflow-y: auto; }
.dict-type {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
    border: 1px solid transparent; color: var(--text-2); font-size: 12.5px; transition: all .18s; cursor: pointer;
}
.dict-type:hover { background: rgba(126, 170, 214, .06); }
.dict-type.is-active { background: rgba(57, 230, 242, .09); border-color: rgba(57, 230, 242, .22); color: var(--cyan); }
.dict-type .code { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--text-4); }
.dict-type .n { font-family: var(--mono); font-size: 9.5px; color: var(--text-4); }
.dict-type.is-active .n { color: var(--cyan); }

/* 组织架构 */
.org-tree { padding: 6px 4px; }
.org-node { position: relative; padding-left: 18px; }
.org-node::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: rgba(126, 170, 214, .12); }
.org-node:last-child::before { bottom: auto; height: 20px; }
.org-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
    font-size: 12px; color: var(--text-2); border: 1px solid transparent; transition: all .18s;
}
.org-row:hover { background: rgba(126, 170, 214, .05); }
.org-row.is-active { background: rgba(57, 230, 242, .08); border-color: rgba(57, 230, 242, .2); color: var(--cyan); }
.org-row .ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; background: rgba(126, 170, 214, .08); color: var(--text-3); }
.org-row.is-active .ico { background: rgba(57, 230, 242, .12); color: var(--cyan); }
.org-row .leader { margin-left: auto; font-size: 10px; color: var(--text-4); }
.org-children { margin-left: 10px; }

/* 用户列表 */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .meta strong { display: block; font-size: 12.5px; font-weight: 500; }
.user-cell .meta em { font-size: 10px; color: var(--text-4); font-family: var(--mono); }
.role-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 5px; background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .22); color: #c4b5fd; font-size: 10px; }
.permission-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.permission-tags .tag { font-size: 9.5px; height: 19px; }

@media (max-width: 1100px) {
    .dict-layout { grid-template-columns: 1fr; }
    .perm-matrix { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); }
}
